summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-08-01 13:53:17 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-08-01 13:53:17 +0000
commit234beef243742572ae124831a4389f62f04a2379 (patch)
tree49b8439b7ed7cfedb4de98a45f46cf6b0de8b5bf /legacy
parent8f285156f38d367179f7730eb99781ab5abf0d12 (diff)
dont double free IF we happen to ref < 0 (not really possible tho)
SVN revision: 15986
Diffstat (limited to 'legacy')
-rw-r--r--legacy/eet/src/lib/eet_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c
index 95c11db6a1..40574a0709 100644
--- a/legacy/eet/src/lib/eet_lib.c
+++ b/legacy/eet/src/lib/eet_lib.c
@@ -644,7 +644,7 @@ eet_close(Eet_File *ef)
644 /* deref */ 644 /* deref */
645 ef->references--; 645 ef->references--;
646 /* if its still referenced - dont go any further */ 646 /* if its still referenced - dont go any further */
647 if (ef->references > 0) return; 647 if (ef->references != 0) return;
648 /* remove from cache */ 648 /* remove from cache */
649 if (ef->mode == EET_FILE_MODE_READ) 649 if (ef->mode == EET_FILE_MODE_READ)
650 eet_cache_del(ef, &eet_readers, &eet_readers_num); 650 eet_cache_del(ef, &eet_readers, &eet_readers_num);