summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-10-14 16:20:22 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-10-14 16:40:09 +0900
commited1101d9945f358c085be921649485249981ef59 (patch)
tree31ca7d5afef03a8d498ad8a6a61232233ae06ed7
parent8b7f060946a4268316792902409bda2fea00fd32 (diff)
downloadefl-ed1101d9945f358c085be921649485249981ef59.tar.gz
fix possible eina file shutdown issue
i am not sure as i cannto reproduce this, but i hope this fixes T4677 by ensuring if eina_file_shutdown is called it cannto double-free a hash.
-rw-r--r--src/lib/eina/eina_file_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 2639db48b4..5cbed8c1fc 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -1054,6 +1054,7 @@ eina_file_shutdown(void)
}
eina_hash_free(_eina_file_cache);
+ _eina_file_cache = NULL;
eina_lock_free(&_eina_file_lock_cache);