зеркало из https://github.com/mozilla/gecko-dev.git
Bug 726764. Avoid leaking CGPaths when getting text paths. r=joe
This commit is contained in:
Родитель
4a290e5ca5
Коммит
5bc15e217c
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче