Fix mem leak reported by Coverity (don't just free fdata if size > 0).

NB: Fixes Coverity CID1039665

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 08:30:26 +01:00
parent 72347e539b
commit 4e103fd858
1 changed files with 1 additions and 1 deletions

View File

@ -633,9 +633,9 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source,
if ((fdata) && (fsize > 0))
{
ok = evas->engine.func->font_memory_add(evas->engine.data.output, font, source, nm, size, fdata, fsize, wanted_rend);
free(fdata);
}
eet_close(ef);
free(fdata);
}
}
else