SVN revision: 51555
This commit is contained in:
Carsten Haitzler 2010-08-22 22:55:58 +00:00
parent e0e8a8eb42
commit 8601258d3f
1 changed files with 7 additions and 1 deletions

View File

@ -926,7 +926,13 @@ quartz_font_from_ats(ATSFontContainerRef container, int size)
font = CTFontCreateWithPlatformFont(fonts[0], size, NULL, NULL);
loaded_font = calloc(1, sizeof(Evas_Quartz_Font));
if (!font || !loaded_font) return NULL;
if (!font || !loaded_font)
{
if (loaded_font) free(loaded_font);
if (fonts) free(fonts);
if (font) CFRelease(font);
return NULL;
}
keys[0] = kCTFontAttributeName;
values[0] = font;