зеркало из https://github.com/mozilla/pjs.git
b=430979, CGFont leaks -- patch from upstream; r=me, a=damon
This commit is contained in:
Родитель
6baac9aa4f
Коммит
46cf3cd7cc
|
@ -343,6 +343,8 @@ _cairo_quartz_font_create_toy(cairo_toy_font_face_t *toy_face,
|
|||
}
|
||||
|
||||
face = cairo_quartz_font_face_create_for_cgfont (cgFont);
|
||||
CGFontRelease (cgFont);
|
||||
|
||||
if (face->status)
|
||||
return face->status;
|
||||
|
||||
|
@ -780,8 +782,13 @@ cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id)
|
|||
{
|
||||
ATSFontRef atsFont = FMGetATSFontRefFromFont (font_id);
|
||||
CGFontRef cgFont = CGFontCreateWithPlatformFont (&atsFont);
|
||||
cairo_font_face_t *ff;
|
||||
|
||||
return cairo_quartz_font_face_create_for_cgfont (cgFont);
|
||||
ff = cairo_quartz_font_face_create_for_cgfont (cgFont);
|
||||
|
||||
CGFontRelease (cgFont);
|
||||
|
||||
return ff;
|
||||
}
|
||||
|
||||
/* This is the old name for the above function, exported for compat purposes */
|
||||
|
|
Загрузка…
Ссылка в новой задаче