summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-05-26 18:47:44 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-26 18:48:39 +0900
commitf917a389b24d341bfed6f8f8ff9340a3a655518a (patch)
tree4caacfa68f15c1594f6219ba91481e43d67c304b
parent9fbdb02240fbcce0e080b0d43b269ca07cbd1180 (diff)
canvas vg: fix vector file data memory leak.
this file data must be freed when eet file is closed. @fix
-rw-r--r--src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c b/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c
index 3455f2a2b1..fdc8eb6d22 100644
--- a/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c
+++ b/src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c
@@ -44,7 +44,11 @@ evas_vg_load_file_open_eet(Eina_File *file, const char *key, int *error EINA_UNU
44static Eina_Bool 44static Eina_Bool
45evas_vg_load_file_close_eet(Vg_File_Data *vfd) 45evas_vg_load_file_close_eet(Vg_File_Data *vfd)
46{ 46{
47 if (!vfd) return EINA_FALSE;
48
47 if (vfd->root) efl_unref(vfd->root); 49 if (vfd->root) efl_unref(vfd->root);
50 free(vfd);
51
48 return EINA_TRUE; 52 return EINA_TRUE;
49} 53}
50 54