MCAudioInputQueue
MCAudioInputQueue copied to clipboard
Possible memory leak in MCAudioQueueInput
In the callback function, because the function is called on the internal thread of AudioQueue, which is a NSThread, the use of subRangeOfData is dangerous and will cause the memory leak. By default, NSThread has no autoreleasepool and we need to manually add it.
I recommend adding an autoreleasepool to avoid the possible memory leak.