Set pointer to singleton instance to NULL after delete-ing it.

This commit is contained in:
folecr 2013-07-23 15:05:57 -07:00
parent f3141826b2
commit 2d7d918fa5
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ namespace CocosDenshion {
void SimpleAudioEngine::end() {
if (s_pEngine) {
delete s_pEngine;
s_pEngine = NULL;
}
}