Browse Source

Make sure that zlib contexts are not garbage collected when busy

v0.7.4-release
Ben Noordhuis 13 years ago
committed by Bert Belder
parent
commit
0ad2717fd8
  1. 2
      src/node_zlib.cc

2
src/node_zlib.cc

@ -134,6 +134,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
ZCtx<mode>::After);
req_wrap->Dispatched();
ctx->Ref();
return req_wrap->object_;
}
@ -191,6 +192,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
// delete the ReqWrap
delete req_wrap;
ctx->Unref();
}
static Handle<Value>

Loading…
Cancel
Save