Close cache file at end and set free'd = NULL

SVN revision: 56691
This commit is contained in:
Sebastian Dransfeld 2011-02-03 19:57:25 +00:00
parent a8f43962f6
commit 9427097015
1 changed files with 5 additions and 2 deletions

View File

@ -95,19 +95,22 @@ efreet_util_shutdown(void)
eina_log_domain_unregister(_efreet_utils_log_dom);
IF_FREE_HASH(file_id_by_desktop_path);
cache = efreet_cache_close(cache);
IF_RELEASE(cache_file);
IF_RELEASE(cache_names_key);
efreet_cache_array_string_free(cache_names);
cache_names = NULL;
IF_RELEASE(cache_hash_key);
if (cache_hash)
{
eina_hash_free(cache_hash->hash);
free(cache_hash);
cache_hash = NULL;
}
cache = efreet_cache_close(cache);
IF_RELEASE(cache_file);
return init;
}