Hi, I just ran the Leaks instrument on my app and it is showing a leak resulting from [SPAudioEngine start];
Do you know why this is happening?
Is there a way to fix it?
Leak from SPAudio Engine
(7 posts) (4 voices)-
Posted 1 year ago #
-
Mhm, I remember being puzzled by that, too. I double-checked everything in Sparrow's code, without finding any error. Thus, I guess the problem is in Apple's libraries. I had several problems with the audio library in the simulator, anyway. On the device, it works better (though I can't remember if the leaks disappeared on a real device).
Posted 1 year ago # -
Hi Daniel, when there is a leak and it's not in a loop (so it happens just once) it doesn't hurt too much because when the application closes memory is freed right?
Posted 1 year ago # -
Yes, that's just a one-time leak, and it's only a very small block of memory. Nothing critical at all.
Posted 1 year ago # -
Ok thanks. I am not concerned now. FYI, this leak happens in the simulator and device.
Posted 1 year ago # -
That also happened to me but I have been doing some experiments with OpenAL directly (without using Sparrow) and the problem still exists. It seems to me that it is actually an OpenAL problem really, but still it is just a one-time leak...
Posted 1 year ago # -
Thanks for sharing this - that make me more confident that the reason has indeed nothing to do with Sparrow
Posted 1 year ago #
Reply
You must log in to post.