{"id":3977,"date":"2014-03-30T06:55:23","date_gmt":"2014-03-30T06:55:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/speex-leaks-on-ios-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:55:23","modified_gmt":"2014-03-30T06:55:23","slug":"speex-leaks-on-ios-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/speex-leaks-on-ios-collection-of-common-programming-errors\/","title":{"rendered":"Speex leaks on iOS-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;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.<\/p>\n<p>I call <code>speex_resampler_init<\/code> it calls <code>speex_resampler_init_frac -&gt; update_filter -&gt; speex_alloc<\/code> and it leaks. Can easily see that on instruments:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/dDSIR.png\" \/><\/p>\n<p>I&#8217;m using precompiled Speex(1.2rc1) for iOS from here.<\/p>\n<p>Am I doing something wrong?<\/p>\n<p>Please help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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 -&gt; update_filter -&gt; speex_alloc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3977","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3977"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3977\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}