EPhysics: do not call update deleted object

If a body has been marked for deletion do not updated it neither call
its BODY_UPDATE callbacks.


Patch by: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 78474
This commit is contained in:
Leandro Dorileo 2012-10-25 21:53:08 +00:00 committed by Bruno Dilly
parent ea213c2ea4
commit 755a182add
1 changed files with 1 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ ephysics_body_evas_object_update_select(EPhysics_Body *body)
{
Eina_Bool callback_called = EINA_FALSE;
if (!body)
if (!body || body->deleted)
return;
callback_called = _ephysics_body_event_callback_call(