Fixed deleting the same module twice, introduced by "Minor style tweaks"
This commit is contained in:
parent
b8c3880fde
commit
433076b88d
1 changed files with 2 additions and 1 deletions
|
|
@ -733,7 +733,8 @@ void MainWindow::updateReorderMode(bool reorderMode)
|
|||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete root_module;
|
||||
// If root_module is not null then it will be the same as last_good_module,
|
||||
// so no need to delete it.
|
||||
delete last_good_module;
|
||||
delete root_node;
|
||||
#ifdef ENABLE_CGAL
|
||||
|
|
|
|||
Loading…
Reference in a new issue