mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-03 21:05:32 +00:00
Fixed potential memory leak
This was SVN commit r681.
This commit is contained in:
@@ -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