Fixed memory leak

This was SVN commit r679.
This commit is contained in:
Ykkrosh 2004-07-10 12:43:29 +00:00
parent 494f68b5d9
commit dd700f6a4b

View File

@ -122,7 +122,7 @@ JSBool JSI_Vector3D::construct( JSContext* cx, JSObject* obj, uintN argc, jsval*
void JSI_Vector3D::finalize( JSContext* cx, JSObject* obj ) 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 ) JSBool JSI_Vector3D::toString( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval )