Gamua/Sparrow-Framework — pull request #7 by arielsw (2013-06-04 17:30:51+00:00)
Title: Fixed bug in SPDisplayObject

I guess the problem popped up during the change to ARC.
SPDisplayObject contains a static array of ancestors in the "transformationMatrixToSpace:" function which prevents SPStage from being deallocated since (now with ARC) it is retained when SPStage is put in the array.
Before the migration to ARC it was all fine since objects were being added to the array without an explicit retain call.

It is debatable whether __weak, __unsafe_unretained, or __autoreleasing should be used in this case. Weak was just the first one that came to mind.