From 28f0f7044aa0a6c01aa6fa12789e26d3d20fe6df Mon Sep 17 00:00:00 2001 From: Srivardhan Hebbar Date: Thu, 25 Dec 2014 21:31:02 +0100 Subject: [PATCH] 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 Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1809 Signed-off-by: Cedric BAIL --- 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 e2742011bb..6735e11ebe 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; }