forked from enlightenment/efl
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:
parent
9fbdb02240
commit
f917a389b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue