summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_cache.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-11-21 09:27:28 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-11-21 09:29:25 +0100
commit233ca45db0f21017afd08cc9353db2a7a144ba98 (patch)
tree7a1dc07cd5d40b8c127192131d0260c14d5ae902 /src/lib/efreet/efreet_cache.c
parentc85534af7edf57a313472747f0dbe7aa193c80b5 (diff)
efreet: Only lock once for efficiency
Diffstat (limited to '')
-rw-r--r--src/lib/efreet/efreet_cache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/efreet/efreet_cache.c b/src/lib/efreet/efreet_cache.c
index 61859056c8..db29e17b4b 100644
--- a/src/lib/efreet/efreet_cache.c
+++ b/src/lib/efreet/efreet_cache.c
@@ -979,6 +979,7 @@ efreet_cache_desktop_close(void)
979 desktops = eina_hash_string_superfast_new(NULL); 979 desktops = eina_hash_string_superfast_new(NULL);
980 } 980 }
981 desktop_cache = NULL; 981 desktop_cache = NULL;
982 IF_RELEASE(desktop_cache_file);
982 eina_lock_release(&_lock); 983 eina_lock_release(&_lock);
983 984
984 efreet_cache_array_string_free(util_cache_names); 985 efreet_cache_array_string_free(util_cache_names);
@@ -992,10 +993,6 @@ efreet_cache_desktop_close(void)
992 } 993 }
993 994
994 util_cache = efreet_cache_close(util_cache); 995 util_cache = efreet_cache_close(util_cache);
995
996 eina_lock_take(&_lock);
997 IF_RELEASE(desktop_cache_file);
998 eina_lock_release(&_lock);
999 IF_RELEASE(util_cache_file); 996 IF_RELEASE(util_cache_file);
1000} 997}
1001 998