closed #2415: [OpenAL] Adding one line to delete SimpleAudioEngine singleton in SimpleAudioEngine::end().

This commit is contained in:
James Chen 2013-07-22 10:32:48 +08:00
parent 604c30f102
commit a60c3eaa20
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,7 @@ namespace CocosDenshion
static ALuint s_backgroundSource = AL_NONE;
static SimpleAudioEngine *s_engine = 0;
static SimpleAudioEngine *s_engine = nullptr;
static int checkALError(const char *funcName)
{
@ -207,6 +207,8 @@ namespace CocosDenshion
delete it->second;
}
s_backgroundMusics.clear();
CC_SAFE_DELETE(s_engine);
}
//