diff --git a/templates/cpp-template-default/Classes/AppDelegate.cpp b/templates/cpp-template-default/Classes/AppDelegate.cpp index bf4a965728..9e7d6a6d68 100644 --- a/templates/cpp-template-default/Classes/AppDelegate.cpp +++ b/templates/cpp-template-default/Classes/AppDelegate.cpp @@ -45,9 +45,6 @@ AppDelegate::AppDelegate() AppDelegate::~AppDelegate() { -#if USE_AUDIO_ENGINE - AudioEngine::end(); -#endif } // if you want a different context, modify the value of glContextAttrs diff --git a/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp b/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp index 753b0c5beb..490ff3bca0 100644 --- a/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp +++ b/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp @@ -43,15 +43,6 @@ AppDelegate::AppDelegate() AppDelegate::~AppDelegate() { -#if USE_AUDIO_ENGINE - AudioEngine::end(); -#endif - -#if (COCOS2D_DEBUG > 0) && (CC_CODE_IDE_DEBUG_SUPPORT > 0) - // NOTE:Please don't remove this call if you want to debug with Cocos Code IDE - RuntimeEngine::getInstance()->end(); -#endif - } // if you want a different context, modify the value of glContextAttrs