From ab4a5c11a8ca2db6da902988fad01366db95cac5 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 3 Dec 2012 16:26:46 +0000 Subject: [PATCH] elm test_hoversel.c: Remove unset icons. SVN revision: 80080 --- legacy/elementary/src/bin/test_hoversel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/bin/test_hoversel.c b/legacy/elementary/src/bin/test_hoversel.c index 7c227f6da0..ff6e726d57 100644 --- a/legacy/elementary/src/bin/test_hoversel.c +++ b/legacy/elementary/src/bin/test_hoversel.c @@ -26,6 +26,8 @@ typedef enum _api_state api_state; static void set_api_state(api_data *api) { + Evas_Object *icon; + const Eina_List *items = elm_box_children_get(api->box); if (!eina_list_count(items)) return; @@ -49,7 +51,8 @@ set_api_state(api_data *api) case HOVERSEL_ICON_UNSET: /* 3 */ elm_object_text_set(eina_list_nth(items, 5), "Label only"); - elm_object_part_content_unset(eina_list_nth(items, 5), "icon"); + icon = elm_object_part_content_unset(eina_list_nth(items, 5), "icon"); + evas_object_del(icon); break; case HOVERSEL_CLEAR_OPEN: /* 4 */