1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-08 15:29:09 +00:00

Fixed potential race condition: ensure the queue is disposed of synchronously because otherwise there'll be a potential dangling reference to self.

This commit is contained in:
Thomas Harte 2017-02-22 07:35:09 -05:00
parent 4f5f191cd6
commit 1d03793f22

View File

@ -104,7 +104,7 @@ static void audioOutputCallback(
- (void)dealloc
{
if(_audioQueue) AudioQueueDispose(_audioQueue, NO);
if(_audioQueue) AudioQueueDispose(_audioQueue, YES);
}
#pragma mark - Audio enqueuer