diff --git a/legacy/efreet/src/lib/efreet_icon.c b/legacy/efreet/src/lib/efreet_icon.c index 3e7757ddc6..828b693ca7 100644 --- a/legacy/efreet/src/lib/efreet_icon.c +++ b/legacy/efreet/src/lib/efreet_icon.c @@ -1153,7 +1153,8 @@ efreet_icon_theme_path_add(Efreet_Icon_Theme *theme, const char *path) { if (!theme || !path) return; - theme->paths = eina_list_append(theme->paths, strdup(path)); + if (!eina_list_search_unsorted(theme->paths, EINA_COMPARE_CB(strcmp), path)) + theme->paths = eina_list_append(theme->paths, strdup(path)); } /**