cedric pushed a commit to branch master.

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

commit 28f0f7044aa0a6c01aa6fa12789e26d3d20fe6df
Author: Srivardhan Hebbar <[email protected]>
Date:   Thu Dec 25 21:31:02 2014 +0100

    evas: fix memory leak issues in evas_object_textgrid.
    
    Summary:
    Calling eina_inarray_free to fix the memory leak issue in the error 
condition.
    
    @fix
    
    Signed-off-by: Srivardhan Hebbar <[email protected]>
    
    Reviewers: devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1809
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/lib/evas/canvas/evas_object_textgrid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/canvas/evas_object_textgrid.c 
b/src/lib/evas/canvas/evas_object_textgrid.c
index e274201..6735e11 100644
--- a/src/lib/evas/canvas/evas_object_textgrid.c
+++ b/src/lib/evas/canvas/evas_object_textgrid.c
@@ -716,6 +716,7 @@ evas_object_textgrid_render(Evas_Object *eo_obj,
                  if (!fad)
                    {
                        ERR("Failed to allocate Evas_Font_Array_Data.");
+                       eina_inarray_free(texts->array);
                        free(texts);
                        return;
                    }

-- 


Reply via email to