From 9fd848b6a537c0ce1f08974d688ede42f3a3ac3d Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 23 Oct 2010 03:51:12 +0000 Subject: [PATCH] aaaah more bad cedric ... eh? :) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@53794 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_data.c | 1 - src/lib/edje_load.c | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/edje_data.c b/src/lib/edje_data.c index ac9a5a0..28fe86d 100644 --- a/src/lib/edje_data.c +++ b/src/lib/edje_data.c @@ -57,7 +57,6 @@ Eet_Data_Descriptor *_edje_edd_edje_external_param = NULL; \ data = eina_mempool_malloc(_emp_##Type, size); \ memset(data, 0, size); \ - \ return data; \ } \ \ diff --git a/src/lib/edje_load.c b/src/lib/edje_load.c index c51220c..f20951d 100644 --- a/src/lib/edje_load.c +++ b/src/lib/edje_load.c @@ -1181,6 +1181,10 @@ _edje_collection_free(Edje_File *edf, Edje_Part_Collection *ec, Edje_Part_Collec free(ep->other.desc); 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 +// "over"? + eina_mempool_free(ce->mp.part, ep); } free(ec->parts); ec->parts = NULL; -- 2.7.4