From d871ff8d11510f21c707d5431454489a9fa34f1c Mon Sep 17 00:00:00 2001 From: Oleksandr Shcherbina Date: Mon, 23 Nov 2015 08:19:49 +0100 Subject: [PATCH] evas: remove useless part of code in evas_convex_hull_get function Summary: @fix CID: 1339788 Reviewers: raster, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3350 Signed-off-by: Cedric BAIL --- src/lib/evas/include/evas_3d_utils.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h index 7c9b34e393..c29f24f928 100644 --- a/src/lib/evas/include/evas_3d_utils.h +++ b/src/lib/evas/include/evas_3d_utils.h @@ -2058,8 +2058,6 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex, if ((!equivalent_triangle) && (!second_exist_twice) && (!triangle_chain) && (if_two < 2)) { - if (new_elem2) - free (new_elem2); new_elem2 = malloc(sizeof(Evas_Triangle3)); evas_triangle3_set(new_elem2, best, &tmp2, &tmp1); eina_array_push(&arr_elems, new_elem2);