Merge pull request #2048 from Wallacoloo/issue-2015-4

Reorder Editor/Song destruction order to prevent bad memory accesses
This commit is contained in:
Dave
2015-06-13 11:37:22 +01:00
3 changed files with 60 additions and 0 deletions

View File

@@ -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();
}