aboutsummaryrefslogtreecommitdiffstats
path: root/legacy
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-21 14:33:19 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-21 14:34:24 +0200
commit1029ccd362c7db6726108a9a882dc1a8a579a3ed (patch)
treeac971b8a144331621d4b9dbf0b42113dcd2d82cf /legacy
parentmenu: fix the 'fixed' errors output (diff)
downloadefl-1029ccd362c7db6726108a9a882dc1a8a579a3ed.tar.gz
Genlist: fix test ending
The multi select data was freed as it was an api_data structure, resulting in a crash when trying to free an internal api_data pointer. @fix
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/bin/test_genlist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c
index 0c25669e21..4c69be277d 100644
--- a/legacy/elementary/src/bin/test_genlist.c
+++ b/legacy/elementary/src/bin/test_genlist.c
@@ -3759,6 +3759,12 @@ _multi_select_frame_create(Evas_Object *bx, Genlist_Multi_Data *gd)
_multi_select_changed_cb, gd);
}
+static void
+_multi_data_free_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+{
+ free(data);
+}
+
void
test_genlist_multi_select(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
@@ -3771,7 +3777,7 @@ test_genlist_multi_select(void *data EINA_UNUSED,
win = elm_win_util_standard_add("genlist-multi-select", "Genlist Multi Select");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, gd);
+ evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _multi_data_free_cb, gd);
bx = elm_box_add(win);
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);