From: Cedric Bail Date: Fri, 11 Oct 2013 05:47:44 +0000 (+0900) Subject: edje: fix a memory leak of Edje_Part_Element for any .edj using them. X-Git-Tag: submit/devel/efl/20131029.075644~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64b2b9c2b202df2b45e50972b6a7b07c2f914fb3;p=platform%2Fupstream%2Fefl.git edje: fix a memory leak of Edje_Part_Element for any .edj using them. --- 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