e-modules/engage: fix segv in desktop-change cb

SVN revision: 62300
This commit is contained in:
Hannes Janetzek 2011-08-10 15:07:53 +00:00
parent acb188248a
commit 558a4d40b4
1 changed files with 8 additions and 2 deletions

View File

@ -121,11 +121,17 @@ ngi_item_remove(Ngi_Item *it)
ngi_animate(ng);
}
EAPI void
void
ngi_item_free(Ngi_Item *it)
{
Ng *ng = it->box->ng;
if (it == ng->item_active)
ng->item_active = NULL;
if (it == ng->item_drag)
ng->item_drag = NULL;
if (eina_list_data_find(ng->items_remove, it))
ng->items_remove = eina_list_remove(ng->items_remove, it);