1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Fix a crash on shutdown

This commit is contained in:
David Sansome 2010-07-03 23:33:31 +00:00
parent db5409b66b
commit b9be6eba5f

View File

@ -541,8 +541,12 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
MainWindow::~MainWindow() {
SaveGeometry();
delete ui_;
// It's important that the device manager is deleted before the database.
// Deleting the database deletes all objects that have been created in its
// thread, including some device library backends.
delete devices_; devices_ = NULL;
}
void MainWindow::ReloadSettings() {