I recently started working with the AudioToolbox framework and noticed that there is a method called AudioServicesDisposeSystemSoundID()
.
Just to know, is it a memory leak not to call the above method when calling AudioServicesCreateSystemSoundID()
to init my SystemSoundID
? I am calling it like:
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &sound);
That way filePath being a NSURL and sound SystemSoundID
.