comment out [glview release]; and [eaglview release];

This commit is contained in:
Slack-Moehrle 2014-08-27 10:26:09 -07:00
parent 491c32b705
commit d4d2b8c83e
1 changed files with 5 additions and 2 deletions

View File

@ -102,7 +102,8 @@ GLViewImpl::GLViewImpl()
GLViewImpl::~GLViewImpl()
{
CCEAGLView *glview = (CCEAGLView*) _eaglview;
[glview release];
// per: http://discuss.cocos2d-x.org/t/ios-glview-cceaglview-incorrect-memory-management/16554/3
//[glview release];
}
bool GLViewImpl::initWithEAGLView(void *eaglview)
@ -187,7 +188,9 @@ void GLViewImpl::end()
CCEAGLView *eaglview = (CCEAGLView*) _eaglview;
[eaglview removeFromSuperview];
[eaglview release];
// per: http://discuss.cocos2d-x.org/t/ios-glview-cceaglview-incorrect-memory-management/16554/3
//[eaglview release];
}