SimpleAudioEngine Leaks Memory

SimpleAudioEngine Leaks Memory
0.0 0



While running Instruments from Xcode to check for any memory leaks in my code, I’ve realized that the SimpleAudioEngine leaks memory. What I have in my game is a background music that I just call once and it keeps on repeating forever.

The following is my code for playing a background music:
CocosDenshion::SimpleAudioEngine::sharedEngine()->playBackgroundMusic(“themeMusic.mp3”, true);

I’ve commented out all the other code that has to do with playing sound effects and background music. I’ve attached a screenshot of the objects that leak.

Obviously when I comment out the mentioned code I get zero memory leaks.


Screen Shot 2013-08-28 at 3.05.55 PM.png (242.0 KB)