From 504a0babcfa2c73cf65228157529992ab24c3d21 Mon Sep 17 00:00:00 2001 From: titan Date: Thu, 3 Feb 2011 19:41:55 +0000 Subject: [PATCH] Fix a bug that causes a segfault by not being to find a path for thumbing. SVN revision: 56683 --- src/bin/ephoto_thumb_browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index 0d34c0a..aed648a 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -110,10 +110,13 @@ ephoto_thumb_browser_show(void) void ephoto_thumb_browser_thumb_append(const char *file) { + char *f; const Elm_Gengrid_Item_Class *egic; + f = strdup(file); + egic = &_ephoto_thumbnail_class; - elm_gengrid_item_append(etb->grid, egic, file, NULL, NULL); + elm_gengrid_item_append(etb->grid, egic, f, NULL, NULL); } static Evas_Object *