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:47:44 +0900
commit46a2e591575257ddbaca49e402067928dd6bb0f7 (patch)
tree3f91a7b5988471dcdb2694d1037860072c43b5d6
parent354c9f50b050982d8dab51be66099557d7e2601c (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