forked from enlightenment/efl
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:
parent
cf6678bbd4
commit
fb7528829b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue