diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2013-09-12 15:53:10 +0100 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2013-09-12 15:53:10 +0100 |
commit | c244dfe89ebf936f14f642c1ae090e3c5d6acb6b (patch) | |
tree | ea4a72c76414e3002ec7dfcbf4667faeddfe99ed /src/lib/ephysics | |
parent | 95b8c98e9149ae5cbffe9fea96c1603eb24d2757 (diff) |
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
Diffstat (limited to 'src/lib/ephysics')
-rw-r--r-- | src/lib/ephysics/ephysics_world.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
407 | eina_condition_free(&world->condition); | 407 | eina_condition_free(&world->condition); |
408 | eina_lock_free(&world->mutex); | 408 | eina_lock_free(&world->mutex); |
409 | 409 | ||
410 | free(world); | ||
411 | INF("World %p deleted.", world); | 410 | INF("World %p deleted.", world); |
411 | free(world); | ||
412 | ephysics_dom_count_dec(); | 412 | ephysics_dom_count_dec(); |
413 | } | 413 | } |
414 | 414 | ||