Free hashes on init error

SVN revision: 56907
This commit is contained in:
Sebastian Dransfeld 2011-02-10 14:24:50 +00:00
parent 23c5801400
commit 09203ef10a
2 changed files with 8 additions and 0 deletions

View File

@ -70,3 +70,4 @@
2011-02-10 Sebastian Dransfeld
* Move all eet cache handling to efreet_cache.c
* Free hashes on init error

View File

@ -146,6 +146,13 @@ efreet_cache_init(void)
return 1;
error:
if (themes) eina_hash_free(themes);
themes = NULL;
if (icons) eina_hash_free(icons);
icons = NULL;
if (fallbacks) eina_hash_free(fallbacks);
fallbacks = NULL;
if (cache_exe_handler) ecore_event_handler_del(cache_exe_handler);
cache_exe_handler = NULL;
if (cache_monitor) ecore_file_monitor_del(cache_monitor);