elementary: colorselector item are created with efl_add, so they are dead when they reach the destructor.

Differential Revision: https://phab.enlightenment.org/D6103
This commit is contained in:
Cedric BAIL 2018-05-04 14:36:14 -07:00
parent dbbcfa4a59
commit 2508c1a3ae
1 changed files with 5 additions and 1 deletions

View File

@ -2005,7 +2005,11 @@ _elm_colorselector_efl_canvas_group_group_del(Eo *obj, Elm_Colorselector_Data *s
ecore_event_handler_del(sd->grab.key_up);
#endif
_items_del(sd);
// We created the items with efl_add, they will be dead after this.
sd->items = eina_list_free(sd->items);
sd->selected = NULL;
sd->focus_items = NULL;
/* This cb_data are used during the destruction process of base.del */
for (i = 0; i < 4; i++)
tmp[i] = sd->cb_data[i];