forked from enlightenment/efl
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:
parent
5e675938d5
commit
62039e6199
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue