Free hashes on init error

SVN revision: 56907
devs/devilhorns/wayland_egl
Sebastian Dransfeld 12 years ago
parent 23c5801400
commit 09203ef10a
  1. 1
      legacy/efreet/ChangeLog
  2. 7
      legacy/efreet/src/lib/efreet_cache.c

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

@ -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);

Loading…
Cancel
Save