SKAction.runAction () completion block memory leak (close)
I often use SKAction with a completion block and use a variable called runAction () in the completion block like this.
self.runAction(SKAction.waitForDuration(2.0)) {
self.removeFromParent()
}
Does this mean maintaining the cycle? I think that if the SKNode does not have a termination variable then the loop does not save. Is it correct?
+3
source to share