Fix eap editor segfault by checking to see that the tile exists before trying to remove it.

SVN revision: 19515
This commit is contained in:
Christopher Michael 2006-01-03 23:23:28 +00:00
parent bba7ef3fba
commit 19690e4b2d
1 changed files with 5 additions and 1 deletions

View File

@ -293,10 +293,14 @@ e_icon_canvas_unpack(Evas_Object *obj)
if(!obj) return;
li = evas_object_data_get(obj, "e_icon_canvas_data");
if (!li) return;
sd = li->sd;
sd->items = evas_list_remove(sd->items, li);
li->tile->items = evas_list_remove(li->tile->items, li);
_e_icon_canvas_disown(obj);
if (!li->tile) return;
if (!li->tile->items) return;
li->tile->items = evas_list_remove(li->tile->items, li);
}
void