Make sure that zlib contexts are not garbage collected when busy
This commit is contained in:
parent
2d8af39acc
commit
0ad2717fd8
@ -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…
x
Reference in New Issue
Block a user