diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2013-09-12 15:48:58 +0100 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2013-09-12 15:48:58 +0100 |
commit | 95b8c98e9149ae5cbffe9fea96c1603eb24d2757 (patch) | |
tree | 276375d85a29b67a218fdc1ee89c970f24eaaf10 /src/lib/ephysics | |
parent | 1fd3950cda333fa8147ee92a659505978a471d70 (diff) |
ephysics: Avoid use after free.
body gets deleted here so better not access it afterwards. My guess is that
in many cases the actual free gets delayed long enough to not crash here but
better avoid this race in the first place.
CID: 1039896
Diffstat (limited to 'src/lib/ephysics')
-rw-r--r-- | src/lib/ephysics/ephysics_body.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ephysics/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp index 791ea5075e..4235d02930 100644 --- a/src/lib/ephysics/ephysics_body.cpp +++ b/src/lib/ephysics/ephysics_body.cpp | |||
@@ -3349,8 +3349,8 @@ ephysics_orphan_body_del(EPhysics_Body *body) | |||
3349 | { | 3349 | { |
3350 | _ephysics_body_event_callback_call(body, EPHYSICS_CALLBACK_BODY_DEL, | 3350 | _ephysics_body_event_callback_call(body, EPHYSICS_CALLBACK_BODY_DEL, |
3351 | (void *) body->evas_obj); | 3351 | (void *) body->evas_obj); |
3352 | _ephysics_body_del(body); | ||
3353 | INF("Body %p deleted.", body); | 3352 | INF("Body %p deleted.", body); |
3353 | _ephysics_body_del(body); | ||
3354 | } | 3354 | } |
3355 | 3355 | ||
3356 | EAPI void | 3356 | EAPI void |