mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 726764. Avoid leaking CGPaths when getting text paths. r=joe
This commit is contained in:
parent
30d6fa7ef6
commit
c6320b4170
@ -102,7 +102,9 @@ ScaledFontMac::GetPathForGlyphs(const GlyphBuffer &aBuffer, const DrawTarget *aT
|
||||
CGPathAddPath(path, &matrix, glyphPath);
|
||||
CGPathRelease(glyphPath);
|
||||
}
|
||||
return new PathCG(path, FILL_WINDING);
|
||||
TemporaryRef<Path> ret = new PathCG(path, FILL_WINDING);
|
||||
CGPathRelease(path);
|
||||
return ret;
|
||||
} else {
|
||||
return ScaledFontBase::GetPathForGlyphs(aBuffer, aTarget);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user