edje: fix memory leak by freeing the limits pointer.
authorSubhransu Mohanty <smohantty@gmail.com>
Wed, 27 May 2020 05:55:44 +0000 (14:55 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 28 May 2020 01:14:45 +0000 (10:14 +0900)
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

index d27fc3b..dbe94ce 100644 (file)
@@ -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);