forked from enlightenment/efl
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:
parent
5f1f361c08
commit
dd484a54dc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue