diff options
author | Hermet Park <chuneon.park@samsung.com> | 2020-05-26 18:37:41 +0900 |
---|---|---|
committer | Hermet Park <chuneon.park@samsung.com> | 2020-05-26 18:41:29 +0900 |
commit | 9fbdb02240fbcce0e080b0d43b269ca07cbd1180 (patch) | |
tree | 79b6bdd7e8c44a3287106d1cf94e84945b3d7912 | |
parent | 3ec1101652a9fedbfa40a29bcfe4842b1c86051e (diff) | |
download | efl-9fbdb02240fbcce0e080b0d43b269ca07cbd1180.tar.gz |
evas vg: clean up dangling instances
unref containers when file is closed.
@fix
-rw-r--r-- | src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c | 3 |
1 files changed, 2 insertions, 1 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 8d04aec0f1..3455f2a2b1 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 @@ -42,8 +42,9 @@ 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 EINA_UNUSED) +evas_vg_load_file_close_eet(Vg_File_Data *vfd) { + if (vfd->root) efl_unref(vfd->root); return EINA_TRUE; } |