summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elm_toolbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index a899bb95f..bea4b56aa 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -2531,7 +2531,12 @@ _elm_toolbar_item_icon_obj_set(Evas_Object *obj,
2531 eina_stringshare_del(item->icon_str); 2531 eina_stringshare_del(item->icon_str);
2532 item->icon_str = NULL; 2532 item->icon_str = NULL;
2533 } 2533 }
2534 if (item->icon)
2535 {
2536 evas_object_del(item->icon);
2537 }
2534 item->icon = icon_obj; 2538 item->icon = icon_obj;
2539
2535 if (icon_obj) 2540 if (icon_obj)
2536 { 2541 {
2537 ms = (icon_size * elm_config_scale_get()); 2542 ms = (icon_size * elm_config_scale_get());