edje: fix a memory leak of Edje_Part_Element for any .edj using them.

This commit is contained in:
Cedric Bail 2013-10-11 14:47:44 +09:00
parent c718a41728
commit 64b2b9c2b2
1 changed files with 2 additions and 0 deletions

View File

@ -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