forked from enlightenment/efl
canvas vg_loader: close opened file after using it.
Summary: Here opened eina file is just leaked. close it properly. @fix. Reviewers: devilhorns, #committers, zmike Reviewed By: #committers, zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6549
This commit is contained in:
parent
b29209ac4b
commit
e7bb795aba
|
@ -2371,6 +2371,7 @@ evas_vg_load_file_data_svg(const char *file, const char *key EINA_UNUSED, int *e
|
||||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||||
}
|
}
|
||||||
free(loader.svg_parse);
|
free(loader.svg_parse);
|
||||||
|
eina_file_close(f);
|
||||||
return vg_common_create_vg_node(loader.doc);
|
return vg_common_create_vg_node(loader.doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue