mohitsh / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

Cannot remove/free NativeInterface in Finalize finctions #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Because GetNativeInterface and RemoveNativeInterface uses
JS_GetPropertyAttrsGetterAndSetter and JS_DeleteProperty, it is not
possible to use them in any Finalize() functions.
So resources that were allocated to store the descriptor cannot be freed.

Original issue reported on code.google.com by sou...@gmail.com on 4 Sep 2007 at 4:46

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 14 Feb 2008 at 1:27

GoogleCodeExporter commented 9 years ago
The new Native Interface system do not store a private data withe the native 
function
then there is no need to use JS_GetPropertyAttrsGetterAndSetter in the Finalize 
function.

Original comment by sou...@gmail.com on 8 Jun 2008 at 6:30