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>
This commit is contained in:
Srivardhan Hebbar 2014-12-25 21:31:02 +01:00 committed by Cedric BAIL
parent 2eebeb8b61
commit 28f0f7044a
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}