diff --git a/Concurrency/AsyncTaskQueue.cpp b/Concurrency/AsyncTaskQueue.cpp index 6edd4055b..4202cd275 100644 --- a/Concurrency/AsyncTaskQueue.cpp +++ b/Concurrency/AsyncTaskQueue.cpp @@ -46,6 +46,7 @@ AsyncTaskQueue::AsyncTaskQueue() AsyncTaskQueue::~AsyncTaskQueue() { #ifdef __APPLE__ dispatch_release(serial_dispatch_queue_); + serial_dispatch_queue_ = nullptr; #else should_destruct_ = true; enqueue([](){});