Fix klockwork memleak: We should free 'texts' that we malloc'd earlier

if we are going to error out.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-28 14:14:44 +01:00
parent 694d1600e8
commit 2a67e78bde
1 changed files with 1 additions and 0 deletions

View File

@ -694,6 +694,7 @@ evas_object_textgrid_render(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj
if (!fad)
{
ERR("Failed to allocate Evas_Font_Array_Data.");
free(texts);
return;
}