Fix crashes in devices

This commit is contained in:
Jonas Kvinge
2019-01-05 23:11:16 +01:00
parent d5fffc3641
commit a06de35aa5
9 changed files with 44 additions and 19 deletions

View File

@@ -77,6 +77,13 @@ void GPodDevice::LoadFinished(Itdb_iTunesDB *db) {
db_ = db;
db_wait_cond_.wakeAll();
if (loader_thread_) {
loader_thread_->quit();
loader_thread_->wait(1000);
loader_thread_->deleteLater();
loader_thread_ = nullptr;
}
loader_->deleteLater();
loader_ = nullptr;