阿里云TTS重播报pointer being freed was not allocated错误

在集成阿里云TTS的时候,在上次语音尚未播放完毕的时候,点击重播按钮,重新初始化转换播放,多次点击重新按钮,会在-(void)cleanup方法的AudioQueueFreeBuffer(audioQueue, audioQueueBuffers[i])代码行,崩溃,控制台报错 pointer being freed was not allocated.
把xib中的重播按钮删掉,在xcode11中重新创建该按钮,重新创建连线事件,不再复现该报错.
暂不清楚原理为何.
另:在xcode10中依然会崩,在xcode11中未能复现.

原文地址:https://www.cnblogs.com/xiao-xiao-/p/11632838.html