MCAudioInputQueue icon indicating copy to clipboard operation
MCAudioInputQueue copied to clipboard

Possible memory leak in MCAudioQueueInput

Open fash97 opened this issue 7 years ago • 0 comments

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.

fash97 avatar Sep 18 '18 20:09 fash97