You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code above allocates memory for MyObject via new (which allocates and calls MyObject::MyObject()), but I don't see where that memory is ever freed?
node-addon-examples/src/1-getting-started/6_object_wrap/napi/myobject.cc
Lines 103 to 111 in 59cb03a
The code above allocates memory for MyObject via
new
(which allocates and callsMyObject::MyObject()
), but I don't see where that memory is ever freed?Here's the finalizer...
node-addon-examples/src/1-getting-started/6_object_wrap/napi/myobject.cc
Lines 11 to 15 in 59cb03a
I believe that finalizer code should be like:
delete
will callMyObject::~MyObject()
AND free the memoryThe text was updated successfully, but these errors were encountered: