Fixed deleting the same module twice, introduced by "Minor style tweaks"

This commit is contained in:
Chris Palmer 2017-03-01 14:49:33 +00:00
parent b8c3880fde
commit 433076b88d

View file

@ -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