projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95b8c98
)
ephysics: Avoid use after free.
author
Stefan Schmidt
<s.schmidt@samsung.com>
Thu, 12 Sep 2013 14:53:10 +0000
(15:53 +0100)
committer
Stefan Schmidt
<s.schmidt@samsung.com>
Thu, 12 Sep 2013 14:53:10 +0000
(15:53 +0100)
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
patch
|
blob
|
history
diff --git
a/src/lib/ephysics/ephysics_world.cpp
b/src/lib/ephysics/ephysics_world.cpp
index b75bb953e7b973c82e48141d628f45d8e2d37f06..60d6b00b3dd322f61b04915bae3295668213136d 100644
(file)
--- 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();
}