diff --git a/legacy/eet/src/lib/eet_data.c b/legacy/eet/src/lib/eet_data.c index f15f9234f1..1d253b6dff 100644 --- a/legacy/eet/src/lib/eet_data.c +++ b/legacy/eet/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/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index 30544c3d1d..9efd59c490 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/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)