From 086f6b1715607ddd3a305b7f41c4198a46844786 Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 16 Dec 2021 19:00:19 +0800 Subject: [PATCH] Remove unnecessary AudioEngine::end() at AppDelegate::~AppDelegate of HellCpp & HelloLua --- templates/cpp-template-default/Classes/AppDelegate.cpp | 3 --- .../frameworks/runtime-src/Classes/AppDelegate.cpp | 9 --------- 2 files changed, 12 deletions(-) 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