Fixed potential memory leak
This was SVN commit r681.
This commit is contained in:
parent
268d81ad27
commit
29de67dff8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user