mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-06 15:00:05 +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:
parent
4f5f191cd6
commit
1d03793f22
@ -104,7 +104,7 @@ static void audioOutputCallback(
|
|||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
if(_audioQueue) AudioQueueDispose(_audioQueue, NO);
|
if(_audioQueue) AudioQueueDispose(_audioQueue, YES);
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Audio enqueuer
|
#pragma mark - Audio enqueuer
|
||||||
|
Loading…
Reference in New Issue
Block a user