Fix eap editor segfault by checking to see that the tile exists before trying to...
authorChristopher Michael <cpmichael1@comcast.net>
Tue, 3 Jan 2006 23:23:28 +0000 (23:23 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Tue, 3 Jan 2006 23:23:28 +0000 (23:23 +0000)
SVN revision: 19515

src/bin/e_icon_canvas.c

index d3e5859..0d2dd10 100644 (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