efreet: Only lock once for efficiency

This commit is contained in:
Sebastian Dransfeld 2013-11-21 09:27:28 +01:00
parent c85534af7e
commit 233ca45db0
1 changed files with 1 additions and 4 deletions

View File

@ -979,6 +979,7 @@ efreet_cache_desktop_close(void)
desktops = eina_hash_string_superfast_new(NULL);
}
desktop_cache = NULL;
IF_RELEASE(desktop_cache_file);
eina_lock_release(&_lock);
efreet_cache_array_string_free(util_cache_names);
@ -992,10 +993,6 @@ efreet_cache_desktop_close(void)
}
util_cache = efreet_cache_close(util_cache);
eina_lock_take(&_lock);
IF_RELEASE(desktop_cache_file);
eina_lock_release(&_lock);
IF_RELEASE(util_cache_file);
}