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:
parent
db5409b66b
commit
b9be6eba5f
@ -541,8 +541,12 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
|
|||||||
|
|
||||||
MainWindow::~MainWindow() {
|
MainWindow::~MainWindow() {
|
||||||
SaveGeometry();
|
SaveGeometry();
|
||||||
|
|
||||||
delete ui_;
|
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() {
|
void MainWindow::ReloadSettings() {
|
||||||
|
Loading…
Reference in New Issue
Block a user