From ca01fd4404449259dd13ca60e9f0c255001e38c6 Mon Sep 17 00:00:00 2001 From: cedric Date: Tue, 14 Apr 2009 09:48:31 +0000 Subject: [PATCH] * evas: Oops, forgotten patch freeing without mempool. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@40038 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_main.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/lib/canvas/evas_main.c b/src/lib/canvas/evas_main.c index 5534217..6c9e57a 100644 --- a/src/lib/canvas/evas_main.c +++ b/src/lib/canvas/evas_main.c @@ -110,6 +110,7 @@ evas_new(void) EAPI void evas_free(Evas *e) { + Evas_Rectangle *r; Evas_Layer *lay; int i; int del; @@ -161,16 +162,10 @@ evas_free(Evas *e) if (e->name_hash) eina_hash_free(e->name_hash); e->name_hash = NULL; - while (e->damages) - { - free(e->damages->data); - e->damages = eina_list_remove(e->damages, e->damages->data); - } - while (e->obscures) - { - free(e->obscures->data); - e->obscures = eina_list_remove(e->obscures, e->obscures->data); - } + EINA_LIST_FREE(e->damages, r) + eina_mempool_free(_evas_rectangle_mp, r); + EINA_LIST_FREE(e->obscures, r) + eina_mempool_free(_evas_rectangle_mp, r); evas_fonts_zero_free(e); -- 2.7.4