We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef997ac commit 7650d08Copy full SHA for 7650d08
src/njs/src/njsIntLob.cpp
@@ -136,6 +136,7 @@ ILob::~ILob()
136
137
void ILob::cleanup()
138
{
139
+ this->jsParent_.Reset ();
140
if (buf_)
141
142
delete [] buf_;
@@ -371,10 +372,8 @@ NAN_METHOD(ILob::Release)
371
372
}
373
374
/*
- * When we release the iLob, we have to clear the reference of
375
- * its parent jsConn.
+ * cleanup() will clear the reference of its parent jsConn.
376
*/
377
- iLob->jsParent_.Reset ();
378
iLob->cleanup();
379
380
info.GetReturnValue().SetUndefined();
0 commit comments