File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,9 @@ Socket.prototype.connect = function() {
629629 initSocket ( self ) ;
630630 if ( self . fd ) throw new Error ( 'Socket already opened' ) ;
631631
632+ assert ( ! self . _readWatcher ) ;
633+ assert ( ! self . _writeWatcher ) ;
634+
632635 timers . active ( this ) ;
633636
634637 self . _connecting = true ; // set false in doConnect
Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ static Handle<Value> IOAlloc(const Arguments& args) {
8484static Handle<Value> IOFree (const Arguments& args) {
8585 HandleScope scope;
8686 ev_io *io = JSToAddress<ev_io>(args[0 ]);
87+ Persistent<Object>* obj_p = static_cast <Persistent<Object>*>(io->data );
88+ obj_p->Dispose ();
89+ delete obj_p;
8790 delete io;
8891 return Undefined ();
8992}
You can’t perform that action at this time.
0 commit comments