From 2586672683b0081bc5879dbf9e552df653d2c196 Mon Sep 17 00:00:00 2001 From: Woochanlee Date: Wed, 27 May 2020 12:32:11 +0900 Subject: [PATCH] edje_load : clean up vector resource when edje file freed. Summary: Fix memory leak. Reviewers: cedric, Hermet, smohanty, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11859 --- src/lib/edje/edje_load.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c index 6d188ed..d27fc3b 100644 --- a/src/lib/edje/edje_load.c +++ b/src/lib/edje/edje_load.c @@ -2163,6 +2163,9 @@ _edje_file_free(Edje_File *edf) { for (i = 0; i < edf->image_dir->entries_count; ++i) eina_stringshare_del(edf->image_dir->entries[i].entry); + + for (i = 0; i < edf->image_dir->vectors_count; ++i) + eina_stringshare_del(edf->image_dir->vectors[i].entry); } /* Sets have been added after edje received eet dictionary support */ @@ -2176,6 +2179,7 @@ _edje_file_free(Edje_File *edf) free(edf->image_dir->entries); free(edf->image_dir->sets); + free(edf->image_dir->vectors); free(edf->image_dir); } if (edf->sound_dir) -- 2.7.4