memory leak in AudioToolbox library AVAudioPlayer

后端 未结 2 1862
Happy的楠姐
Happy的楠姐 2021-01-14 21:37

Is there a memory lead issue with the AVAudioPlayer object? I\'m getting a memory leak when using AVAudioPlayer in the simulator. It doesn\'t matter how I created the AVAudi

2条回答
  •  温柔的废话
    2021-01-14 22:09

    Just ran a test as I was experiencing the same issue. Instruments showed a leak at the start of an app when sound was played using AVAudioPlayer. It was only registered once at the start. The sounds generated afterwards have not had any further leaks.

    When I ran the same app build on my iPhone using Instruments, there was no leak at all.

    I'm running iOS 11.2.5 and Xcode Deployment Target is 11.0

    Looks like it is just an Xcode bug but could be related to MacOS.

提交回复
热议问题