From 09f28175a4a4a18153d8852deb18d33193a8ac0c Mon Sep 17 00:00:00 2001 From: englebass Date: Sun, 12 Dec 2010 22:17:05 +0000 Subject: [PATCH] use convenience macro git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@55523 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/efreet_cache.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/efreet_cache.c b/src/lib/efreet_cache.c index 28f84f9..51a4021 100644 --- a/src/lib/efreet_cache.c +++ b/src/lib/efreet_cache.c @@ -150,8 +150,7 @@ efreet_cache_shutdown(void) theme_cache = _efreet_cache_free(theme_cache); fallback_cache = _efreet_cache_fallback_free(fallback_cache); - if (theme_name) eina_stringshare_del(theme_name); - theme_name = NULL; + IF_RELEASE(theme_name); icon_cache = efreet_cache_close(icon_cache); icon_theme_cache = efreet_cache_close(icon_theme_cache); @@ -595,9 +594,8 @@ efreet_cache_icon_find(Efreet_Icon_Theme *theme, const char *icon) { /* FIXME: this is bad if people have pointer to this cache, things will go wrong */ INFO("theme_name change from `%s` to `%s`", theme_name, theme->name.internal); - eina_stringshare_del(theme_name); + IF_RELEASE(theme_name); theme_cache = _efreet_cache_free(theme_cache); - theme_name = NULL; } if (!theme_name) @@ -849,8 +847,7 @@ cache_update_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUSED__, theme_cache = _efreet_cache_free(theme_cache); } - if (theme_name) eina_stringshare_del(theme_name); - theme_name = NULL; + IF_RELEASE(theme_name); if (fallback_cache) { -- 2.7.4