ephysics: Avoid use after free.

Like the one before. This time we use free deirectly so no delay. Don't
use it after being freed.

CID: 1039894
This commit is contained in:
Stefan Schmidt 2013-09-12 15:53:10 +01:00
parent 95b8c98e91
commit c244dfe89e
1 changed files with 1 additions and 1 deletions

View File

@ -407,8 +407,8 @@ _ephysics_world_free(EPhysics_World *world)
eina_condition_free(&world->condition);
eina_lock_free(&world->mutex);
free(world);
INF("World %p deleted.", world);
free(world);
ephysics_dom_count_dec();
}