From 4a3e57313f3561a68376798a5009d9b871ebf449 Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 22 Aug 2008 14:35:21 +0000 Subject: [PATCH] Fix two source of memory leak. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@35616 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eet_data.c | 1 + src/lib/eet_lib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/eet_data.c b/src/lib/eet_data.c index f15f923..1d253b6 100644 --- a/src/lib/eet_data.c +++ b/src/lib/eet_data.c @@ -2505,6 +2505,7 @@ _eet_data_descriptor_decode(const Eet_Dictionary *ed, _eet_freelist_reset(); _eet_freelist_str_reset(); _eet_freelist_list_reset(); + _eet_freelist_direct_str_reset(); } if (dumpfunc) { diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c index 30544c3..9efd59c 100644 --- a/src/lib/eet_lib.c +++ b/src/lib/eet_lib.c @@ -318,7 +318,7 @@ eet_cache_del(Eet_File *ef, Eet_File ***cache, int *cache_num, int *cache_alloc) for (j = i; j < new_cache_num; j++) new_cache[j] = new_cache[j + 1]; - if (new_cache_num < (new_cache_alloc - 16)) + if (new_cache_num <= (new_cache_alloc - 16)) { new_cache_alloc -= 16; if (new_cache_num > 0) -- 2.7.4