Closed fgeorg closed 10 years ago
Thanks, I agree it shouldn't crash, I was actually going to raise a related issue about this same topic today. I'll reference this in it.
This seems to have been fixed after upgrading to release-3.1.0-rc.1 [523ee6bcab]
As of the 3.1 beta the following code snippet crashes. Removing the (obviously useless) first line fixes it. Still, I think cocos2d/Spritebuilder shouldn't crash in this case.
Changing CCAction.h:47 id unsafe_unretained _originalTarget; id unsafe_unretained _target;
to be __weak also fixes the crash, which leads me to believe that this points to a larger memory management issue.
link to sample project repro case: https://www.dropbox.com/sh/mpv5uejo6pr5r4o/AADG8XXbxigWcDcTYPMY9RRBa
stack trace of the crash: