evas_model_load_ply: Prevent memory leak

Summary:
If use ein_str_split, have to free the first element of the array
and free the array.

Test Plan: N/A

Reviewers: Hermet, YOhoho, bu5hm4n, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11419
This commit is contained in:
junsu choi 2020-02-27 09:55:37 +09:00
parent 5e675938d5
commit 62039e6199
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ evas_model_load_file_ply(Evas_Canvas3D_Mesh *mesh, Eina_File *file)
evas_model_load_vertex_data_unmap(mesh, 0, header);
evas_model_load_aabb_add_to_frame(mesh, 0, stride);
free(split_of_map[0]);
free(split_of_map);
if (map)
{