forked from enlightenment/efl
parent
b6c29efe76
commit
dd3a72dc33
|
@ -9,3 +9,7 @@
|
||||||
2011-01-30 Carsten Haitzler (The Rasterman)
|
2011-01-30 Carsten Haitzler (The Rasterman)
|
||||||
|
|
||||||
Fix tests to not build clearenv related code if not available
|
Fix tests to not build clearenv related code if not available
|
||||||
|
|
||||||
|
2011-01-31 Sebastian Dransfeld
|
||||||
|
|
||||||
|
* Fix memleak, free cache icons after retrival
|
||||||
|
|
|
@ -456,6 +456,7 @@ efreet_icon_path_find(const char *theme_name, const char *icon, unsigned int siz
|
||||||
cache = efreet_cache_icon_find(theme, tmp);
|
cache = efreet_cache_icon_find(theme, tmp);
|
||||||
value = efreet_cache_icon_lookup_icon(cache, size);
|
value = efreet_cache_icon_lookup_icon(cache, size);
|
||||||
if (!value) INFO("lookup for `%s` failed in theme `%s` with %p.", icon, theme_name, cache);
|
if (!value) INFO("lookup for `%s` failed in theme `%s` with %p.", icon, theme_name, cache);
|
||||||
|
efreet_cache_icon_free(cache);
|
||||||
#else
|
#else
|
||||||
value = efreet_icon_find_helper(theme, tmp, size);
|
value = efreet_icon_find_helper(theme, tmp, size);
|
||||||
#endif
|
#endif
|
||||||
|
@ -476,6 +477,7 @@ efreet_icon_path_find(const char *theme_name, const char *icon, unsigned int siz
|
||||||
cache = efreet_cache_icon_fallback_find(icon);
|
cache = efreet_cache_icon_fallback_find(icon);
|
||||||
value = efreet_cache_icon_fallback_lookup_path(cache);
|
value = efreet_cache_icon_fallback_lookup_path(cache);
|
||||||
if (!value) INFO("lookup for `%s` failed in fallback too with %p.", icon, cache);
|
if (!value) INFO("lookup for `%s` failed in fallback too with %p.", icon, cache);
|
||||||
|
efreet_cache_icon_fallback_free(cache);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
value = efreet_icon_fallback_icon(icon);
|
value = efreet_icon_fallback_icon(icon);
|
||||||
|
@ -541,6 +543,7 @@ efreet_icon_list_find(const char *theme_name, Eina_List *icons,
|
||||||
if (!strcmp(cache->theme, theme->name.internal))
|
if (!strcmp(cache->theme, theme->name.internal))
|
||||||
{
|
{
|
||||||
value = efreet_cache_icon_lookup_icon(cache, size);
|
value = efreet_cache_icon_lookup_icon(cache, size);
|
||||||
|
efreet_cache_icon_free(cache);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue