mirror of https://github.com/axmolengine/axmol.git
Set pointer to singleton instance to NULL after delete-ing it.
This commit is contained in:
parent
f3141826b2
commit
2d7d918fa5
|
@ -46,6 +46,7 @@ namespace CocosDenshion {
|
|||
void SimpleAudioEngine::end() {
|
||||
if (s_pEngine) {
|
||||
delete s_pEngine;
|
||||
s_pEngine = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue