Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

...

  • Loading branch information...
commit 076b8b19114736ad46a5786eaa899845aac3b051 1 parent efdbb69
@ry ry authored
Showing with 3 additions and 1 deletion.
  1. +0 −1  lib/_io_watcher.js
  2. +3 −0  src/node_io_watcher.cc
View
1  lib/_io_watcher.js
@@ -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);
View
3  src/node_io_watcher.cc
@@ -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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.