Properly destroy fade thread
This commit is contained in:
parent
abd59be30d
commit
6a85699e11
|
@ -180,13 +180,20 @@ private:
|
||||||
void terminateFade()
|
void terminateFade()
|
||||||
{
|
{
|
||||||
if (!fading)
|
if (!fading)
|
||||||
|
{
|
||||||
|
delete fadeData.thread;
|
||||||
|
fadeData.thread = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Tell our thread to wrap up and wait for it */
|
/* Tell our thread to wrap up and wait for it */
|
||||||
fadeData.terminate = true;
|
fadeData.terminate = true;
|
||||||
fadeData.thread->wait();
|
fadeData.thread->wait();
|
||||||
|
|
||||||
fading = false;
|
fading = false;
|
||||||
|
|
||||||
|
delete fadeData.thread;
|
||||||
|
fadeData.thread = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void stopPriv()
|
void stopPriv()
|
||||||
|
|
Loading…
Reference in New Issue