mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-01 12:53:49 -04:00
Merge pull request #2048 from Wallacoloo/issue-2015-4
Reorder Editor/Song destruction order to prevent bad memory accesses
This commit is contained in:
@@ -216,6 +216,11 @@ MainWindow::~MainWindow()
|
||||
delete view;
|
||||
}
|
||||
// TODO: Close tools
|
||||
// dependencies are such that the editors must be destroyed BEFORE Song is deletect in Engine::destroy
|
||||
// see issue #2015 on github
|
||||
delete gui->automationEditor();
|
||||
delete gui->pianoRoll();
|
||||
delete gui->songEditor();
|
||||
// destroy engine which will do further cleanups etc.
|
||||
Engine::destroy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user