diff options
author | Hermet Park <chuneon.park@samsung.com> | 2020-05-26 18:47:44 +0900 |
---|---|---|
committer | Hermet Park <chuneon.park@samsung.com> | 2020-05-26 18:48:39 +0900 |
commit | f917a389b24d341bfed6f8f8ff9340a3a655518a (patch) | |
tree | 4caacfa68f15c1594f6219ba91481e43d67c304b | |
parent | 9fbdb02240fbcce0e080b0d43b269ca07cbd1180 (diff) | |
download | efl-f917a389b24d341bfed6f8f8ff9340a3a655518a.tar.gz |
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.c | 4 |
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 static Eina_Bool evas_vg_load_file_close_eet(Vg_File_Data *vfd) { + if (!vfd) return EINA_FALSE; + if (vfd->root) efl_unref(vfd->root); + free(vfd); + return EINA_TRUE; } |