From 6d02ebcf28f3d781c20c47942ee8b7c0b9dcdaa1 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 4 Aug 2012 04:14:38 +0000 Subject: [PATCH] leaks--! SVN revision: 74868 --- legacy/evas/src/lib/canvas/evas_object_main.c | 5 +++++ legacy/evas/src/lib/file/evas_module.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_main.c b/legacy/evas/src/lib/canvas/evas_object_main.c index c7e9aed9aa..955570b6ae 100644 --- a/legacy/evas/src/lib/canvas/evas_object_main.c +++ b/legacy/evas/src/lib/canvas/evas_object_main.c @@ -74,6 +74,11 @@ evas_object_free(Evas_Object *obj, int clean_layer) evas_object_clip_changes_clean(obj); evas_object_event_callback_all_del(obj); evas_object_event_callback_cleanup(obj); + if (obj->spans) + { + free(obj->spans); + obj->spans = NULL; + } while (obj->data.elements) { Evas_Data_Node *node; diff --git a/legacy/evas/src/lib/file/evas_module.c b/legacy/evas/src/lib/file/evas_module.c index bdb94dfb7c..3c9378dd6a 100644 --- a/legacy/evas/src/lib/file/evas_module.c +++ b/legacy/evas/src/lib/file/evas_module.c @@ -571,6 +571,8 @@ evas_module_clean(void) /* } */ } +static Eina_Prefix *pfx = NULL; + /* will dlclose all the modules loaded and free all the structs */ void evas_module_shutdown(void) @@ -599,6 +601,11 @@ evas_module_shutdown(void) eina_array_free(evas_engines); evas_engines = NULL; + if (pfx) + { + eina_prefix_free(pfx); + pfx = NULL; + } } EAPI int @@ -621,8 +628,6 @@ _evas_module_engine_inherit(Evas_Func *funcs, char *name) return 0; } -static Eina_Prefix *pfx = NULL; - EAPI const char * _evas_module_libdir_get(void) {