summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2014-12-25 21:31:02 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-25 21:31:06 +0100
commit28f0f7044aa0a6c01aa6fa12789e26d3d20fe6df (patch)
tree313643721ed36360401e5cabb5b51578543699d2 /src/lib/evas/canvas
parent2eebeb8b611d271efa6a860c0e91cf8701912623 (diff)
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 <sri.hebbar@samsung.com> Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1809 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas')
-rw-r--r--src/lib/evas/canvas/evas_object_textgrid.c1
1 files changed, 1 insertions, 0 deletions
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,
716 if (!fad) 716 if (!fad)
717 { 717 {
718 ERR("Failed to allocate Evas_Font_Array_Data."); 718 ERR("Failed to allocate Evas_Font_Array_Data.");
719 eina_inarray_free(texts->array);
719 free(texts); 720 free(texts);
720 return; 721 return;
721 } 722 }