From ea64125124b7bf329c6580ecc9a6951b311ff660 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 13 Aug 2017 22:15:25 -0400 Subject: [PATCH] Added an explicit nilling, to help with debugging. --- Concurrency/AsyncTaskQueue.cpp | 1 + 1 file changed, 1 insertion(+) 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([](){});