SRGSSR / srgmediaplayer-apple

An advanced media player library, simple and reliable
MIT License
159 stars 33 forks source link

Leak on AVFAudio -[AVAudioSessionPortDescription initWithPortType:] #21

Closed pyby closed 6 years ago

pyby commented 7 years ago

Issue overview

When calling -[AVAudioSession currentRoute], little leaks appear. (16 to 192 bytes).

Check the correct option below

Description of the problem

Using Instruments and the demo applications. Use the "Leak checks" tool, we can find those little leak. From AudioToolbox or AVFAudio libraries.

Environment information

Reproducibility

Links

http://stackoverflow.com/questions/41529859/instruments-show-leak-in-avaudiosessionportdescription-initwithporttype-xcod

defagos commented 7 years ago

This is probably an Apple bug. We should file a report.

defagos commented 6 years ago

The leaks have been fixed. I could not reproduce them with an iOS 11 device (though I found other FigXPCMessageCopyCFObject leaks).

With iOS 12, no leaks can be found anymore.