Re: leak in AVAudioPlayer ?
Re: leak in AVAudioPlayer ?
- Subject: Re: leak in AVAudioPlayer ?
- From: Julian Richardson <email@hidden>
- Date: Fri, 07 Dec 2012 07:25:43 -0800
Ariel
I have seen exactly this problem with the audio data property of AVAudioPlayer - but it only seems to happen in simulator. On the device the data does does get released correctly when the AVAudioPlayer instance is deallocated. I am using ARC. I spent half a day making sure the data was not being retained by some other part of my code.
I believe there probably is a bug in the simulator implementation of AVAudioPlayer.
I have not checked but guess the same phenomenon is causing the NSURL to be retained.
Julian
--
Julian Richardson, PhD
http://www.ternary.ws
On Dec 7, 2012, at 6:23 AM, Ariel Feinerman <email@hidden> wrote:
> Hi,
>
> I have seen in leaks profiler the AVAudioPlayer make three retain and only
> two release of NSURL
>
>
> --
> best regards
> Ariel
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden