forked from enlightenment/efl
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:
parent
1fd3950cda
commit
95b8c98e91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue