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
This commit is contained in:
Stefan Schmidt 2013-09-12 15:48:58 +01:00
parent 1fd3950cda
commit 95b8c98e91
1 changed files with 1 additions and 1 deletions

View File

@ -3349,8 +3349,8 @@ ephysics_orphan_body_del(EPhysics_Body *body)
{
_ephysics_body_event_callback_call(body, EPHYSICS_CALLBACK_BODY_DEL,
(void *) body->evas_obj);
_ephysics_body_del(body);
INF("Body %p deleted.", body);
_ephysics_body_del(body);
}
EAPI void