Bug 812039 - mozIsPointInPath leaks CGPath objects. r=jmuizelaar

This commit is contained in:
Yury 2012-11-15 20:34:57 -05:00
parent 3fd47679a0
commit fc06b33fb9

View File

@ -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?