Hi,
I find a memory leak when MacawView.doFindNode is invoked. It should invoke MGraphicsEndImageContext() before return doFindNode.
private func doFindNode(location: CGPoint) -> NodePath? {
MGraphicsBeginImageContextWithOptions(self.bounds.size, false, 1.0)
if let ctx = MGraphicsGetCurrentContext() {
return doFindNode(location: location, ctx: ctx) // here should invoke MGraphicsEndImageContext() before return doFindNode
}
MGraphicsEndImageContext()
return .none
}