From 5c3db51bafa0cad5e884ea3a5ee1a8c8f5b4e2d6 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 13 Jul 2012 14:54:43 +0000 Subject: [PATCH] fix bad stringshare use in e_thumb SVN revision: 73818 --- src/bin/e_thumb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bin/e_thumb.c b/src/bin/e_thumb.c index 5b50c9532..3cb8b0b13 100644 --- a/src/bin/e_thumb.c +++ b/src/bin/e_thumb.c @@ -98,14 +98,10 @@ e_thumb_icon_file_set(Evas_Object *obj, const char *file, const char *key) eth = evas_object_data_get(obj, "e_thumbdata"); if (!eth) return; - if (eth->file) eina_stringshare_del(eth->file); - eth->file = NULL; - if (eth->key) eina_stringshare_del(eth->key); - eth->key = NULL; + eina_stringshare_replace(ð->file, file); + eina_stringshare_replace(ð->key, key); if (eth->sort_id) free(eth->sort_id); eth->sort_id = NULL; - if (file) eth->file = eina_stringshare_add(file); - if (key) eth->key = eina_stringshare_add(key); } EAPI void