mirror of https://github.com/zeldaret/botw.git
ksys/Utils: Fix inaccuracy in TaskThread dtor
This commit is contained in:
parent
7a5f9dae9b
commit
4cb68509c7
|
@ -17,8 +17,9 @@ TaskThread::~TaskThread() {
|
|||
return;
|
||||
|
||||
mTaskQueue->removeThread(this);
|
||||
if (mFlags.isOff(Flag::DoesNotOwnTaskQueue) && mTaskQueue) {
|
||||
delete mTaskQueue;
|
||||
if (mFlags.isOff(Flag::DoesNotOwnTaskQueue)) {
|
||||
if (mTaskQueue)
|
||||
delete mTaskQueue;
|
||||
mTaskQueue = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue