aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-09-30 16:14:26 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-09-30 16:14:26 -0400
commitaa607513412aaff916b329e5628f21087bb77f6d (patch)
tree79d28de488103165f1958481713293966d00fd46 /legacy/elementary/src
parentcolorclass: remove remote editor, make base api public (diff)
downloadefl-aa607513412aaff916b329e5628f21087bb77f6d.tar.gz
colorclass: fix leaks on editor creation
Diffstat (limited to 'legacy/elementary/src')
-rw-r--r--legacy/elementary/src/lib/elm_color_class.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_color_class.c b/legacy/elementary/src/lib/elm_color_class.c
index 682977c60a..6d36ec87be 100644
--- a/legacy/elementary/src/lib/elm_color_class.c
+++ b/legacy/elementary/src/lib/elm_color_class.c
@@ -776,12 +776,19 @@ elm_color_class_editor_add(Evas_Object *obj)
{
if (test)
{
- if (eina_hash_find(test, ecc->name)) continue;
+ if (eina_hash_find(test, ecc->name))
+ {
+ eina_stringshare_del(ecc->name);
+ eina_stringshare_del(ecc->desc);
+ free(ecc);
+ continue;
+ }
eina_hash_add(test, ecc->name, ecc);
}
elm_genlist_item_sorted_insert(gl, &itc, ecc, NULL, 0, (Eina_Compare_Cb)_colorclass_sort, NULL, NULL);
}
}
+ eina_hash_free(test);
return ly;
}