Next step to diagnosing SKScene deallocation issue?

177 views Asked by At

I have been trying to figure out why one of my SKScenes wont deallocate for quite a while now. I have plugged all leaks according to Instruments, and have used __weak references for all completion blocks. What is my next step to figuring out why my SKScene won't deallocate? I have NSLog'ed the dealloc method to confirm it isn't being called, and the allocation heap continues to grow with each new time the game scene is played in instruments.

1

There are 1 answers

0
Kami Dojin On

If you have a block code, check them also and make sure you nil those blocks holding references to self. When you reference ivars inside blocks, it retains ownership to self.