Safely close database connections and delete backends

Also fix NewClosure leak caused by disconnected object signals
This commit is contained in:
Jonas Kvinge
2019-07-24 19:16:51 +02:00
parent bd78e8c275
commit b5eb13449b
47 changed files with 490 additions and 53 deletions

View File

@@ -96,6 +96,8 @@ bool MtpLoader::TryLoad() {
// Add the songs we've just loaded
backend_->AddOrUpdateSongs(songs);
backend_->Close();
return true;
}