Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure that zlib contexts are not garbage collected when busy
  • Loading branch information
bnoordhuis authored and piscisaureus committed Jan 10, 2012
1 parent 2d8af39 commit 0ad2717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_zlib.cc
Expand Up @@ -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_;
}
Expand Down Expand Up @@ -191,6 +192,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {

// delete the ReqWrap
delete req_wrap;
ctx->Unref();
}

static Handle<Value>
Expand Down

0 comments on commit 0ad2717

Please sign in to comment.