I have a strange memory leaks when creating Sprite Kit physics bodies with custom shapes. This is how my implementation looks:
CGFloat offsetX = self.frame.s
Does anything change if you do the following?
CGPathRef pathCopy = CGPathCreateCopy(path); CGPathRelease(path); self.physicsBody = [SKPhysicsBody bodyWithPolygonFromPath:pathCopy]; CGPathRelease(pathCopy);