mirror of https://github.com/axmolengine/axmol.git
comment out [glview release]; and [eaglview release];
This commit is contained in:
parent
491c32b705
commit
d4d2b8c83e
|
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue