Wednesday, 7 August 2013

Speex leaks on iOS

Speex leaks on iOS

I've been using Speex for a while now. Lately I discovered my app crashes
sometimes during Speex encoding. When trying to discover where the problem
comes from I discovered that Speex is leaking always and take huge amount
of memory every time I used it.
I call speex_resampler_init it calls speex_resampler_init_frac ->
update_filter -> speex_alloc and it leaks. Can easily see that on
instruments:

I'm using precompiled Speex(1.2rc1) for iOS from:
http://iosdeveloperzone.com/2013/04/09/precompiled-speex-libraries-for-ios/
Am I doing something wrong?
Please help.

No comments:

Post a Comment