mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 711357 - release the CGFontRef after creating our font entry (which holds its own reference). r=jdaggett
This commit is contained in:
parent
0236199d36
commit
ebaa9ad3ce
@ -1004,6 +1004,7 @@ gfxMacPlatformFontList::MakePlatformFontCG(const gfxProxyFontEntry *aProxyEntry,
|
|||||||
aProxyEntry->mItalic ?
|
aProxyEntry->mItalic ?
|
||||||
FONT_STYLE_ITALIC : FONT_STYLE_NORMAL,
|
FONT_STYLE_ITALIC : FONT_STYLE_NORMAL,
|
||||||
true, false));
|
true, false));
|
||||||
|
::CFRelease(fontRef);
|
||||||
|
|
||||||
// if succeeded and font cmap is good, return the new font
|
// if succeeded and font cmap is good, return the new font
|
||||||
if (newFontEntry->mIsValid && NS_SUCCEEDED(newFontEntry->ReadCMAP())) {
|
if (newFontEntry->mIsValid && NS_SUCCEEDED(newFontEntry->ReadCMAP())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user