Merge pull request #8055 from Dhilan007/v3-audio903

Fix a potential crash in AudioEngine on Android.
This commit is contained in:
minggo 2014-09-15 17:37:59 +08:00
commit 0af9c33301
1 changed files with 2 additions and 1 deletions

View File

@ -251,7 +251,8 @@ void AudioEngineImpl::playerFinishCallback(SLPlayItf caller, SLuint32 playEvent)
{
iter->second._finishCallback(iter->second._audioID, *AudioEngine::_audioIDInfoMap[iter->second._audioID].filePath);
}
AudioEngine::stop(iter->second._audioID);
AudioEngine::remove(iter->second._audioID);
_audioPlayers.erase(iter);
break;
}
}