Browse Source

Fix issue in 5b7fb10

v0.7.4-release
Ryan 16 years ago
parent
commit
5ab93502d0
  1. 5
      src/node.cc
  2. 3
      src/process.cc

5
src/node.cc

@ -52,10 +52,9 @@ ObjectWrap::Attach ()
void
ObjectWrap::Detach ()
{
if (attach_count_ > 0)
attach_count_ -= 1;
if (attach_count_ > 0) attach_count_ -= 1;
if(weak_ && attach_count_ == 0) {
if (weak_ && attach_count_ == 0) {
V8::AdjustAmountOfExternalAllocatedMemory(-size());
delete this;
}

3
src/process.cc

@ -224,8 +224,6 @@ Process::Shutdown ()
ev_child_stop(EV_DEFAULT_UC_ &child_watcher_);
/* XXX Kill the PID? */
pid_ = 0;
Detach();
}
static inline int
@ -504,5 +502,6 @@ Process::MaybeShutdown (void)
}
Shutdown();
Detach();
}
}

Loading…
Cancel
Save