mirror of https://github.com/axmolengine/axmol.git
Merge pull request #8055 from Dhilan007/v3-audio903
Fix a potential crash in AudioEngine on Android.
This commit is contained in:
commit
0af9c33301
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue