mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-02 13:24:36 -04:00
Reorder Editor/Song destruction order to prevent bad memory accesses (issue #2015)
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