Merge pull request #13302 from WenhaiLin/v3.8-CocosBuilderTest-crash

CppTests-->Extension-->CocosBuilderTest:Fixed crash on Android 5.0.x.
This commit is contained in:
子龙山人 2015-08-11 11:04:54 +08:00
commit f1c252a1a8
1 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,12 @@ AndroidJavaEngine::AndroidJavaEngine()
}
}
AndroidJavaEngine::~AndroidJavaEngine() {
AndroidJavaEngine::~AndroidJavaEngine()
{
if (_implementBaseOnAudioEngine)
{
stopAllEffects();
}
cocos2d::JniMethodInfo methodInfo;
if (!getJNIStaticMethodInfo(methodInfo, "end", "()V")) {