mirror of https://github.com/axmolengine/axmol.git
CocosDenshion fix
This commit is contained in:
parent
3b2eea2541
commit
cd219162e0
|
@ -86,10 +86,10 @@ namespace CocosDenshion
|
|||
s_pEngine=0;
|
||||
}
|
||||
|
||||
for( SoundFxMap::iterator it = g_pSoundFxMap->begin(); it!=g_pSoundFxMap->end(); it++ ) {
|
||||
if( it->second.data != 0 ) free( it->second.data ) ;
|
||||
}
|
||||
if( g_pSoundFxMap ) {
|
||||
for( SoundFxMap::iterator it = g_pSoundFxMap->begin(); it!=g_pSoundFxMap->end(); it++ )
|
||||
if( it->second.data != 0 ) free( it->second.data ) ;
|
||||
|
||||
delete g_pSoundFxMap ;
|
||||
g_pSoundFxMap = 0 ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue