summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-08-30 07:54:18 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-08-30 07:54:18 +0000
commitc9195bea899e78903d357e8f35c520ac523fb786 (patch)
treef4e44b2601fb92d934ec6bbc21ff2b461260830f
parent85b0ba93da0225e6acf98cad5708310e13ac0c65 (diff)
elm diskselector: Fixed wrong icon duplication. Do not duplicate icon if icon is NULL.
This fixes following error message in diskselector. ERR<30865>: elm_icon.c:761 elm_icon_add() safety check failed: parent == NULL SVN revision: 75847
-rw-r--r--src/lib/elm_diskselector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index e1dcfd306..1b0968615 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -961,6 +961,8 @@ _icon_duplicate(Evas_Object *icon)
961 const char *file; 961 const char *file;
962 const char *group; 962 const char *group;
963 963
964 if (!icon) return NULL;
965
964 elm_image_file_get(icon, &file, &group); 966 elm_image_file_get(icon, &file, &group);
965 ic = elm_icon_add(icon); 967 ic = elm_icon_add(icon);
966 elm_image_file_set(ic, file, group); 968 elm_image_file_set(ic, file, group);