Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CocosDenshion fix

  • Loading branch information...
commit 708cf9ece55af131a91092fd960ad804ed91663b 1 parent 3baa93d
@mrmop mrmop authored dumganhar committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 CocosDenshion/marmalade/SimpleAudioEngine.cpp
View
6 CocosDenshion/marmalade/SimpleAudioEngine.cpp
@@ -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 ;
}
Please sign in to comment.
Something went wrong with that request. Please try again.