From d4d2b8c83e8a7b50da288bb41b4fb19604464cfb Mon Sep 17 00:00:00 2001 From: Slack-Moehrle Date: Wed, 27 Aug 2014 10:26:09 -0700 Subject: [PATCH 1/2] comment out [glview release]; and [eaglview release]; --- cocos/platform/ios/CCGLViewImpl.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cocos/platform/ios/CCGLViewImpl.mm b/cocos/platform/ios/CCGLViewImpl.mm index 2bc9aec8d7..2c05a03625 100644 --- a/cocos/platform/ios/CCGLViewImpl.mm +++ b/cocos/platform/ios/CCGLViewImpl.mm @@ -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]; } From 1b5413d8b442fa04d2ec121851d0c36d3d4c1883 Mon Sep 17 00:00:00 2001 From: Slack-Moehrle Date: Wed, 27 Aug 2014 10:42:27 -0700 Subject: [PATCH 2/2] comment out [glview release]; and [eaglview release]; --- cocos/platform/ios/CCGLViewImpl.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/cocos/platform/ios/CCGLViewImpl.mm b/cocos/platform/ios/CCGLViewImpl.mm index 2c05a03625..bb8f4fccf3 100644 --- a/cocos/platform/ios/CCGLViewImpl.mm +++ b/cocos/platform/ios/CCGLViewImpl.mm @@ -102,7 +102,6 @@ GLViewImpl::GLViewImpl() GLViewImpl::~GLViewImpl() { CCEAGLView *glview = (CCEAGLView*) _eaglview; - // per: http://discuss.cocos2d-x.org/t/ios-glview-cceaglview-incorrect-memory-management/16554/3 //[glview release]; } @@ -188,8 +187,6 @@ void GLViewImpl::end() CCEAGLView *eaglview = (CCEAGLView*) _eaglview; [eaglview removeFromSuperview]; - - // per: http://discuss.cocos2d-x.org/t/ios-glview-cceaglview-incorrect-memory-management/16554/3 //[eaglview release]; }