From d4d2b8c83e8a7b50da288bb41b4fb19604464cfb Mon Sep 17 00:00:00 2001 From: Slack-Moehrle Date: Wed, 27 Aug 2014 10:26:09 -0700 Subject: [PATCH] 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]; }