forked from 0ad/0ad
Fixed memory leak
This was SVN commit r679.
This commit is contained in:
parent
494f68b5d9
commit
dd700f6a4b
@ -122,7 +122,7 @@ JSBool JSI_Vector3D::construct( JSContext* cx, JSObject* obj, uintN argc, jsval*
|
||||
|
||||
void JSI_Vector3D::finalize( JSContext* cx, JSObject* obj )
|
||||
{
|
||||
delete( JS_GetPrivate( cx, obj ) );
|
||||
delete( (Vector3D_Info*)JS_GetPrivate( cx, obj ) );
|
||||
}
|
||||
|
||||
JSBool JSI_Vector3D::toString( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval )
|
||||
|
Loading…
Reference in New Issue
Block a user