mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 812039 - mozIsPointInPath leaks CGPath objects. r=jmuizelaar
This commit is contained in:
parent
3fd47679a0
commit
fc06b33fb9
@ -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…
Reference in New Issue
Block a user