cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=64b2b9c2b202df2b45e50972b6a7b07c2f914fb3

commit 64b2b9c2b202df2b45e50972b6a7b07c2f914fb3
Author: Cedric Bail <cedric.b...@samsung.com>
Date:   Fri Oct 11 14:47:44 2013 +0900

    edje: fix a memory leak of Edje_Part_Element for any .edj using them.
---
 src/lib/edje/edje_load.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index a65dbd5..f69b59e 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -1608,6 +1608,8 @@ _edje_collection_free(Edje_File *edf, 
Edje_Part_Collection *ec, Edje_Part_Collec
         if(ep->other.desc_rtl)
           free(ep->other.desc_rtl);
 
+       for (j = 0; j < ep->items_count; ++j)
+         free(ep->items[j]);
         free(ep->items);
         // technically need this - but we ASSUME we use "one_big" so 
everything gets
         // freed in one go lower down when we del the mempool... but what if 
pool goes

-- 


Reply via email to