Don't leak target control handle

This commit is contained in:
baldurk
2019-12-17 15:51:16 +00:00
parent 93b0d65726
commit e302ecfe83
@@ -1315,6 +1315,9 @@ void LiveCapture::connectionThreadEntry()
}
}
if(m_Connection)
m_Connection->Shutdown();
GUIInvoke::call(this, [this]() {
ui->connectionStatus->setText(tr("Closed"));
ui->connectionIcon->setPixmap(Pixmaps::disconnect(ui->connectionIcon));