I have found bug in CCSpriteBatchNode. When CCSpriteBatchNode is destroyed it doesn't set NULL for children (like in CCNode). Here is case when i have this kind of situation. My childs are retained so when CCSpriteBatchNode is destroyed childs still have pointer to destroyed CCSpriteBatchNode.
Resulution will be to do the same like in CCNode simply iterate through childs an set batch node to NULL
My destructor look like:
if(m_pChildren && m_pChildren->count() > 0)
CCSprite* pChild = (CCSprite*) child;
Should i make a PR for this? I have this on cocos2dx master branch.