efl_canvas_vg svg: free the svg tree returned by eet_data_read()

The eet_data_read() api creates the structure by referencing the wwt data structure
and reading from eet file. So the structure should be deleted by the user of the function.
As eet_data_read() api documentation dosen't specify about the ownership I guess
we need to free this structure to avoid memory leak.
This commit is contained in:
SubhransuSekhar Mohanty 2019-07-25 15:17:05 +09:00 committed by Hermet Park
parent 5f1f361c08
commit dd484a54dc
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@ evas_vg_load_file_open_eet(Eina_File *file, const char *key, int *error EINA_UNU
{
*error = EVAS_LOAD_ERROR_NONE;
}
return vg_common_svg_create_vg_node(node);
Vg_File_Data *vg_data = vg_common_svg_create_vg_node(node);
vg_common_svg_node_free(node);
return vg_data;
}
static Eina_Bool