forked from enlightenment/efl
Fix wrong usages of malloc, calloc and E_NEW
Patch by bad-alloc.cocci SVN revision: 50828
This commit is contained in:
parent
03f82b7d73
commit
a470ed668c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue