Free hashes on init error
authorSebastian Dransfeld <sd@tango.flipp.net>
Thu, 10 Feb 2011 14:24:50 +0000 (14:24 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Thu, 10 Feb 2011 14:24:50 +0000 (14:24 +0000)
SVN revision: 56907

legacy/efreet/ChangeLog
legacy/efreet/src/lib/efreet_cache.c

index fdd2119..ae5d3a8 100644 (file)
@@ -70,3 +70,4 @@
 2011-02-10  Sebastian Dransfeld
 
        * Move all eet cache handling to efreet_cache.c
+       * Free hashes on init error
index dfe7272..006241a 100644 (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);