Fix wrong usages of malloc, calloc and E_NEW

Patch by bad-alloc.cocci


SVN revision: 50828
This commit is contained in:
Lucas De Marchi 2010-08-05 00:50:43 +00:00
parent 03f82b7d73
commit a470ed668c
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ evas_imaging_font_load(const char *file, const char *key, int size)
font = evas_common_font_hinting_load((char *)file, size, _evas_hinting);
}
if (!font) return NULL;
fn = calloc(1, sizeof(RGBA_Font));
fn = calloc(1, sizeof(Evas_Imaging_Font));
if (!fn) return NULL;
fn->font = font;
return fn;