Fix segv, clear mem cache on eet file close

Patch by Hannes Janetzek

SVN revision: 56735
devs/devilhorns/wayland_egl
Sebastian Dransfeld 12 years ago
parent 2296007594
commit 8d0cebc632
  1. 4
      legacy/efreet/ChangeLog
  2. 14
      legacy/efreet/src/lib/efreet_utils.c

@ -38,3 +38,7 @@
in efreet_init()
* Set EFREET_MODULE_LOG_DOM variable to -1 after unregister
* Remove duplicate logging macros
2011-02-05 Hannes Janetzek
* Clear mem cache when closing eet file

@ -671,6 +671,20 @@ efreet_util_cache_names(Eet_Data_Descriptor *edd, const char *key)
void
efreet_util_desktop_cache_reload(void)
{
if (cache_names)
{
IF_RELEASE(cache_names_key);
efreet_cache_array_string_free(cache_names);
cache_names = NULL;
}
if (cache_hash)
{
IF_RELEASE(cache_hash_key);
eina_hash_free(cache_hash->hash);
free(cache_hash);
cache_hash = NULL;
}
cache = efreet_cache_close(cache);
}

Loading…
Cancel
Save