stefan pushed a commit to branch master.
commit c244dfe89ebf936f14f642c1ae090e3c5d6acb6b
Author: Stefan Schmidt <[email protected]>
Date: Thu Sep 12 15:53:10 2013 +0100
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 b75bb95..60d6b00 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();
}
--
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk