From c244dfe89ebf936f14f642c1ae090e3c5d6acb6b Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 12 Sep 2013 15:53:10 +0100 Subject: [PATCH] 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 --- src/lib/ephysics/ephysics_world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ephysics/ephysics_world.cpp b/src/lib/ephysics/ephysics_world.cpp index b75bb953e7..60d6b00b3d 100644 --- a/src/lib/ephysics/ephysics_world.cpp +++ b/src/lib/ephysics/ephysics_world.cpp @@ -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(); }