From 1557033bcc05fc4efffae3ee2f87dbe94d887962 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 26 May 2020 18:37:41 +0900 Subject: [PATCH] evas vg: clean up dangling instances unref containers when file is closed. @fix --- src/modules/evas/vg_loaders/eet/evas_vg_load_eet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 8d04aec..3455f2a 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; } -- 2.7.4