From 755a182addccb627fec3c5d5d56f8a7729194d0d Mon Sep 17 00:00:00 2001 From: Leandro Dorileo Date: Thu, 25 Oct 2012 21:53:08 +0000 Subject: [PATCH] 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 SVN revision: 78474 --- legacy/ephysics/src/lib/ephysics_body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp index 574e37166f..f7c7dfa9b1 100644 --- a/legacy/ephysics/src/lib/ephysics_body.cpp +++ b/legacy/ephysics/src/lib/ephysics_body.cpp @@ -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(