mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 812039 - mozIsPointInPath leaks CGPath objects. r=jmuizelaar
This commit is contained in:
parent
b2b151a3d0
commit
c1d893e99b
@ -222,8 +222,10 @@ PathCG::StrokeContainsPoint(const StrokeOptions &aStrokeOptions,
|
||||
CGContextRestoreGState(cg);
|
||||
|
||||
CGPathRef sPath = CGContextCopyPath(cg);
|
||||
bool inStroke = CGPathContainsPoint(sPath, nullptr, point, false);
|
||||
CGPathRelease(sPath);
|
||||
|
||||
return CGPathContainsPoint(sPath, nullptr, point, false);
|
||||
return inStroke;
|
||||
}
|
||||
|
||||
//XXX: what should these functions return for an empty path?
|
||||
|
Loading…
x
Reference in New Issue
Block a user