As I’m running cocos2d-x into a uikit view, I have to create/end the director quite often. The CCDirectorCaller was not correctly deallocated when calling director~~>end, here is a quick fix. It seems that you need to invalidate the displayLink in order to release the CCDirectorCaller.
In CCdirectorCaller.mm, cocos2d-x
Before fix
*destroy {
;
}
After fix
- destroy {
;
; s_sharedDirectorCaller=nil;
}
~~(void) destroy {
[displayLink invalidate]; displayLink=nil;
}