Hi,
At some point in my game, I need to remove entirely the Director and openGL stuff from memory. I use this :
[[Director sharedDirector] end];
[[Director sharedDirector] release];
By looking at the CCLOGs, I can see Director gets dealloc'd.
I've added an NSLog in the dealloc method of the EAGLView class and noticed it was never called. In the Director class, I've added [openGLView_ release]; in the dealloc method because the openGL view is created with alloc init (bug ?). And even with this extra release, the EAGL view does not get dealloc'd.
This is weird because Instruments does not report any leak. And after I remove the Director, I load another openGL view (outside of cocos, and it's a modified version of the EAGLView class which has a different name than the EAGLView class provided with cocos) and it gets displayed correctly.
Anybody else seeing this ?