cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d871ff8d11510f21c707d5431454489a9fa34f1c

commit d871ff8d11510f21c707d5431454489a9fa34f1c
Author: Oleksandr Shcherbina <o.shcherb...@samsung.com>
Date:   Mon Nov 23 08:19:49 2015 +0100

    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 <ced...@osg.samsung.com>
---
 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 7c9b34e..c29f24f 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);

-- 


Reply via email to