Closed kunwang closed 4 years ago
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 }
Hi, @kunwang, this issue already fixed in the master branch
Ok, thanks.
Hi, I find a memory leak when MacawView.doFindNode is invoked. It should invoke MGraphicsEndImageContext() before return doFindNode.