evas: remove useless part of code in evas_convex_hull_get function
authorOleksandr Shcherbina <o.shcherbina@samsung.com>
Mon, 23 Nov 2015 07:19:49 +0000 (08:19 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 23 Nov 2015 07:20:26 +0000 (08:20 +0100)
Summary:
@fix
CID: 1339788

Reviewers: raster, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3350

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/evas/include/evas_3d_utils.h

index 7c9b34e..c29f24f 100644 (file)
@@ -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);