forked from enlightenment/efl
evas-3d: Fix Resource leak from CID1271635
Summary: This fixes a reported resource leak (by coverity). _pack_meshes_vertex_data allocates memory stored in 'vertices' however vertices is never free'd unless count > 0 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
d3d909bf9e
commit
3eed18d231
|
@ -570,8 +570,8 @@ _update_node_shapes(Evas_3D_Node *node)
|
|||
_rotate_vertices(&pd->orientation_world, count, vertices);
|
||||
_calculate_box(&pd->local_aabb, count, vertices);
|
||||
}
|
||||
free(vertices);
|
||||
}
|
||||
free(vertices);
|
||||
}
|
||||
|
||||
pd->bsphere.radius = pd->local_bsphere.radius;
|
||||
|
|
Loading…
Reference in New Issue