summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-12-12 22:17:05 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-12-12 22:17:05 +0000
commit58e0a470cfc8433f15b1352c905e819c066f6cb6 (patch)
tree580909a7fb52cd7e8ee0e56c66c5cb77267dcce3 /legacy
parent75fee3c938106845c22f830563a5189c50ea69a0 (diff)
use convenience macro
SVN revision: 55523
Diffstat (limited to 'legacy')
-rw-r--r--legacy/efreet/src/lib/efreet_cache.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/legacy/efreet/src/lib/efreet_cache.c b/legacy/efreet/src/lib/efreet_cache.c
index 28f84f9ff1..51a4021f4c 100644
--- a/legacy/efreet/src/lib/efreet_cache.c
+++ b/legacy/efreet/src/lib/efreet_cache.c
@@ -150,8 +150,7 @@ efreet_cache_shutdown(void)
150 theme_cache = _efreet_cache_free(theme_cache); 150 theme_cache = _efreet_cache_free(theme_cache);
151 fallback_cache = _efreet_cache_fallback_free(fallback_cache); 151 fallback_cache = _efreet_cache_fallback_free(fallback_cache);
152 152
153 if (theme_name) eina_stringshare_del(theme_name); 153 IF_RELEASE(theme_name);
154 theme_name = NULL;
155 154
156 icon_cache = efreet_cache_close(icon_cache); 155 icon_cache = efreet_cache_close(icon_cache);
157 icon_theme_cache = efreet_cache_close(icon_theme_cache); 156 icon_theme_cache = efreet_cache_close(icon_theme_cache);
@@ -595,9 +594,8 @@ efreet_cache_icon_find(Efreet_Icon_Theme *theme, const char *icon)
595 { 594 {
596 /* FIXME: this is bad if people have pointer to this cache, things will go wrong */ 595 /* FIXME: this is bad if people have pointer to this cache, things will go wrong */
597 INFO("theme_name change from `%s` to `%s`", theme_name, theme->name.internal); 596 INFO("theme_name change from `%s` to `%s`", theme_name, theme->name.internal);
598 eina_stringshare_del(theme_name); 597 IF_RELEASE(theme_name);
599 theme_cache = _efreet_cache_free(theme_cache); 598 theme_cache = _efreet_cache_free(theme_cache);
600 theme_name = NULL;
601 } 599 }
602 600
603 if (!theme_name) 601 if (!theme_name)
@@ -849,8 +847,7 @@ cache_update_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUSED__,
849 theme_cache = _efreet_cache_free(theme_cache); 847 theme_cache = _efreet_cache_free(theme_cache);
850 } 848 }
851 849
852 if (theme_name) eina_stringshare_del(theme_name); 850 IF_RELEASE(theme_name);
853 theme_name = NULL;
854 851
855 if (fallback_cache) 852 if (fallback_cache)
856 { 853 {