CppTests-->Extension-->CocosBuilderTest:Fixed crash on Android 5.0.x.

This commit is contained in:
WenhaiLin 2015-08-10 22:41:18 +08:00
parent 06f57600d4
commit 2deeee70d2
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; cocos2d::JniMethodInfo methodInfo;
if (!getJNIStaticMethodInfo(methodInfo, "end", "()V")) { if (!getJNIStaticMethodInfo(methodInfo, "end", "()V")) {