edje: fix a memory leak of Edje_Part_Element for any .edj using them.
authorCedric Bail <cedric.bail@samsung.com>
Fri, 11 Oct 2013 05:47:44 +0000 (14:47 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Fri, 11 Oct 2013 05:47:44 +0000 (14:47 +0900)
src/lib/edje/edje_load.c

index a65dbd5..f69b59e 100644 (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