canvas vg: fix vector file data memory leak.

this file data must be freed when eet file is closed.

@fix
This commit is contained in:
Hermet Park 2020-05-26 18:47:44 +09:00
parent 9fbdb02240
commit f917a389b2
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}