I am running the Tools, and this indicates that SimpleAudioEngine is performing a memory leak. Screenshot attached. A memory leak several times, although the screenshot shows only one instance.

Also, sometimes it points to the following implementation (my code):
-(void) preloadGameSounds
{
[[SimpleAudioEngine sharedEngine] preloadEffect:@"farm_background_sound.mp3"];
[[SimpleAudioEngine sharedEngine] preloadEffect:@"chickenlayingegg.mp3"];
[[SimpleAudioEngine sharedEngine] preloadEffect:@"ding.caf"];
[[SimpleAudioEngine sharedEngine] preloadEffect:@"baloonpop.wav"];
[[SimpleAudioEngine sharedEngine] preloadEffect:@"applause.mp3"];
[[SimpleAudioEngine sharedEngine] preloadEffect:@"wrong_answer_sound.wav"];
}
When changing scenes, I also unload the sound using the following implementation:
-(void) unloadSoundEffects
{
[[SimpleAudioEngine sharedEngine] unloadEffect:@"applause.mp3"];
[[SimpleAudioEngine sharedEngine] unloadEffect:@"ding.caf"];
[[SimpleAudioEngine sharedEngine] unloadEffect:@"chickenlayingegg.mp3"];
}
This memory leak makes the FPS of the game low and makes the game slower and slower!
source
share