cocos2d/cocos2d-x — Issue #566: Crash when application closed and currently transition scene active
Author: ferreus
Created: 2011-10-26 10:08:44+00:00
State: open

Application crashed when trying to exit, while changing scene (Transition active).
The debuger shows that it crashed on: CCTexture2d.cpp:81 ( In destructor: glDeleteTextures(1, &m_uName);)
This http://www.cocos2d-x.org/boards/12/topics/4738?r=4747 suggests that InScene doesn't receive onExit calls.
And it doesn't. There is a comment in CCTransition.cpp:onExit call:
"// inScene should not receive the onExit callback
// only the onEnterTransitionDidFinish"

But actually adding the onExit call does solves the crash.