Fixed potential memory leak
This was SVN commit r681.
This commit is contained in:
1 parent
268d81ad27
commit
29de67dff8
1 file changed
+1
-1
@@ -116,7 +116,7 @@ JSBool JSI_Entity::construct( JSContext* cx, JSObject* obj, unsigned int argc, j
|
||||
|
||||
void JSI_Entity::finalize( JSContext* cx, JSObject* obj )
|
||||
{
|
||||
delete( JS_GetPrivate( cx, obj ) );
|
||||
delete( (HEntity*)JS_GetPrivate( cx, obj ) );
|
||||
}
|
||||
|
||||
void JSI_Entity::init()
|
||||
|
||||
Reference in new issue
Block a user