Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 18, 2011
1 parent efdbb69 commit 076b8b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/_io_watcher.js
Expand Up @@ -40,7 +40,6 @@ IOWatcher.prototype.stop = function() {

IOWatcher.prototype.free = function() {
assert(this.pointer);
ioStop(this.pointer);
ioFree(this.pointer);
this.pointer = null;
allWatchers.remove(this);
Expand Down
3 changes: 3 additions & 0 deletions src/node_io_watcher.cc
Expand Up @@ -87,6 +87,9 @@ static Handle<Value> IOFree(const Arguments& args) {
Persistent<Object>* obj_p = static_cast<Persistent<Object>*>(io->data);
obj_p->Dispose();
delete obj_p;

ev_io_stop(io);

delete io;
return Undefined();
}
Expand Down

0 comments on commit 076b8b1

Please sign in to comment.