1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Added an explicit nilling, to help with debugging.

This commit is contained in:
Thomas Harte 2017-08-13 22:15:25 -04:00
parent 1011143dbe
commit ea64125124

View File

@ -46,6 +46,7 @@ AsyncTaskQueue::AsyncTaskQueue()
AsyncTaskQueue::~AsyncTaskQueue() { AsyncTaskQueue::~AsyncTaskQueue() {
#ifdef __APPLE__ #ifdef __APPLE__
dispatch_release(serial_dispatch_queue_); dispatch_release(serial_dispatch_queue_);
serial_dispatch_queue_ = nullptr;
#else #else
should_destruct_ = true; should_destruct_ = true;
enqueue([](){}); enqueue([](){});