mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-07 01:01:43 +00:00
Bug 726764. Avoid leaking CGPaths when getting text paths. r=joe
This commit is contained in:
parent
4a290e5ca5
commit
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user