Fix two source of memory leak.
authorcedric <cedric>
Fri, 22 Aug 2008 14:35:21 +0000 (14:35 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Aug 2008 14:35:21 +0000 (14:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@35616 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_data.c
src/lib/eet_lib.c

index f15f923..1d253b6 100644 (file)
@@ -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)
      {
index 30544c3..9efd59c 100644 (file)
@@ -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)