EPhysics: avoid invalid read / writes on world free

Looks like we'll need to fix discrete dynamics world destructor
on bullet, but current revision is kind of messed.
I'll see what I can do later.

And yes, it will leak the ddw until it's fixed.



SVN revision: 75145
This commit is contained in:
Bruno Dilly 2012-08-10 21:04:16 +00:00
parent cf6678bbd4
commit fb7528829b
1 changed files with 5 additions and 1 deletions

View File

@ -155,11 +155,15 @@ _ephysics_world_free(EPhysics_World *world)
}
ephysics_camera_del(world->camera);
/* FIXME uncomment lines above when dynamicsworld destructor is fixed
on bullet. Right now looks like it will try to acess invalid memory.*/
/*
delete world->dynamics_world;
delete world->solver;
delete world->broadphase;
delete world->dispatcher;
delete world->collision;
delete world->broadphase;
*/
free(world);
INF("World %p deleted.", world);