ios - Is AVAudio autoreleased? -
i'm new playing sounds on ios. know play various sounds should have audio manager helper class keeping audios together.
now, i'm wondering if ok without memory leak:
avaudioplayer *newplayer = [[avaudioplayer alloc] initwithcontentsofurl:url error:&err]; [newplayer play];
will player released after finished playing? or need keep pointer it, call [newplayer stop]
when finishes, set pointer nil
?
actually opposite of leak. if not retain player, released , never play.
see answer here more info: playing audio using avaudioplayer ios 7
Comments
Post a Comment