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:
Hermet Park 2018-07-11 16:09:31 +09:00
parent b29209ac4b
commit e7bb795aba
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
free(loader.svg_parse);
eina_file_close(f);
return vg_common_create_vg_node(loader.doc);
}