forked from enlightenment/efl
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:
parent
72347e539b
commit
4e103fd858
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue