summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-05-26 18:47:44 +0900
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-15 15:32:31 +0200
commit83d9bbd7a3278e8a8956a3fce01d2e840134d50e (patch)
tree09af38c78ab1e956601630831e40e2e083a494fc
parent3e5a28325efcaca58cef525e8bb07768188c28f8 (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