Fix a crash on shutdown

This commit is contained in:
David Sansome 2010-07-03 23:33:31 +00:00
parent db5409b66b
commit b9be6eba5f
1 changed files with 5 additions and 1 deletions

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() {