null check

SVN revision: 75387
This commit is contained in:
Mike Blumenkrantz 2012-08-17 11:55:51 +00:00
parent da8d08112a
commit 3361ea98f0
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ _e_mod_physics_shelf_free(E_Physics *p, E_Shelf *es)
eps = _e_mod_physics_shelf_find(p, es);
if (!eps) return;
ephysics_body_del(eps->body);
if (eps->body) ephysics_body_del(eps->body);
p->shelves = eina_inlist_remove(p->shelves, EINA_INLIST_GET(eps));
free(eps);
}