summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhransu Mohanty <smohantty@gmail.com>2020-05-27 12:31:35 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-27 12:31:35 +0900
commited167716b6dcbad567e94930d838af13adac720f (patch)
tree46f690e1f096adb8f1baa1ba122598b73c159760
parentf240a528ddd31fc6f91df040e33ea50107473adc (diff)
edje: Fix memory leak by freeing the filter data.
Reviewers: Hermet, CHAN Reviewed By: CHAN Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11879
-rw-r--r--src/lib/edje/edje_load.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index 2fb3da0267..2888f6b291 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -2172,6 +2172,22 @@ _edje_file_free(Edje_File *edf)
2172 free(edf->vibration_dir); 2172 free(edf->vibration_dir);
2173 } 2173 }
2174 2174
2175 if (edf->filter_dir)
2176 {
2177 int i;
2178
2179 if (edf->free_strings)
2180 {
2181 for (i = 0; i < edf->filter_dir->filters_count; ++i)
2182 {
2183 eina_stringshare_del(edf->filter_dir->filters[i].name);
2184 eina_stringshare_del(edf->filter_dir->filters[i].script);
2185 }
2186 }
2187 free(edf->filter_dir->filters);
2188 free(edf->filter_dir);
2189 }
2190
2175 if (edf->mo_dir) 2191 if (edf->mo_dir)
2176 { 2192 {
2177 unsigned int i; 2193 unsigned int i;