summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2020-05-27 12:32:11 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-27 12:32:12 +0900
commiteb38000e3dd7a52a6af8daf17c6643dd86ff8f5c (patch)
tree9bd7e0ffe02b69d03933a0cc7d321ade6eb36b4f
parented167716b6dcbad567e94930d838af13adac720f (diff)
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
-rw-r--r--src/lib/edje/edje_load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index 2888f6b291..b3fa2e3d57 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -2121,6 +2121,9 @@ _edje_file_free(Edje_File *edf)
2121 { 2121 {
2122 for (i = 0; i < edf->image_dir->entries_count; ++i) 2122 for (i = 0; i < edf->image_dir->entries_count; ++i)
2123 eina_stringshare_del(edf->image_dir->entries[i].entry); 2123 eina_stringshare_del(edf->image_dir->entries[i].entry);
2124
2125 for (i = 0; i < edf->image_dir->vectors_count; ++i)
2126 eina_stringshare_del(edf->image_dir->vectors[i].entry);
2124 } 2127 }
2125 2128
2126 /* Sets have been added after edje received eet dictionary support */ 2129 /* Sets have been added after edje received eet dictionary support */
@@ -2134,6 +2137,7 @@ _edje_file_free(Edje_File *edf)
2134 2137
2135 free(edf->image_dir->entries); 2138 free(edf->image_dir->entries);
2136 free(edf->image_dir->sets); 2139 free(edf->image_dir->sets);
2140 free(edf->image_dir->vectors);
2137 free(edf->image_dir); 2141 free(edf->image_dir);
2138 } 2142 }
2139 if (edf->sound_dir) 2143 if (edf->sound_dir)