CocosDenshion fix

This commit is contained in:
Mat Hopwood 2012-11-29 20:24:39 +00:00 committed by James Chen
parent 3b2eea2541
commit cd219162e0
1 changed files with 3 additions and 3 deletions

View File

@ -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 ;
}