From 033e83580015baa084d0080f0fb91622e84fd271 Mon Sep 17 00:00:00 2001 From: Subhransu Mohanty Date: Wed, 27 May 2020 14:55:44 +0900 Subject: [PATCH] edje: fix memory leak by freeing the limits pointer. Summary: This limit parts are only used in naviframe edc thats why it is only showing up in naviframe test app. Reviewers: Jaehyun_Cho, Hermet Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11887 --- src/lib/edje/edje_load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c index d27fc3b..dbe94ce 100644 --- a/src/lib/edje/edje_load.c +++ b/src/lib/edje/edje_load.c @@ -2435,6 +2435,8 @@ _edje_collection_free(Edje_File *edf, Edje_Part_Collection *ec, Edje_Part_Collec if (ec->script) embryo_program_free(ec->script); _edje_lua2_script_unload(ec); + if (ec->limits.parts) free(ec->limits.parts); + eina_hash_free(ec->alias); eina_hash_free(ec->aliased); -- 2.7.4