1
1
forked from 0ad/0ad

Fixed potential memory leak

This was SVN commit r681.
This commit is contained in:
Ykkrosh 2004-07-10 12:56:17 +00:00
parent 268d81ad27
commit 29de67dff8

View File

@ -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()