mirror of https://github.com/axmolengine/axmol.git
add guard to audio engine pointer
This commit is contained in:
parent
6638a53d69
commit
2bb7b96839
|
@ -46,7 +46,10 @@ SimpleAudioEngine* SimpleAudioEngine::getInstance() {
|
|||
}
|
||||
|
||||
void SimpleAudioEngine::end() {
|
||||
oAudioPlayer->close();
|
||||
if(oAudioPlayer)
|
||||
{
|
||||
oAudioPlayer->close();
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue