aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-05 18:56:18 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-05 18:56:18 +0100
commit09aca1674915d5e2bc4287336d7d52c83b51342d (patch)
treecb6191662d6e69cdc3f0c615fc49d3f6f7b8d1e6
parent71e2e98d07499c6d0f31596fec52cd8cef5813a9 (diff)
downloadqtmips-09aca1674915d5e2bc4287336d7d52c83b51342d.tar.gz
qtmips-09aca1674915d5e2bc4287336d7d52c83b51342d.tar.bz2
qtmips-09aca1674915d5e2bc4287336d7d52c83b51342d.zip
Fix segfault on gui exit
-rw-r--r--qtmips_gui/programdock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/programdock.cpp b/qtmips_gui/programdock.cpp
index 0f2b166..8553494 100644
--- a/qtmips_gui/programdock.cpp
+++ b/qtmips_gui/programdock.cpp
@@ -49,8 +49,8 @@ ProgramDock::ProgramDock(QWidget *parent) : QDockWidget(parent) {
ProgramDock::~ProgramDock() {
delete ctlbox_single;
delete ctlbox_pipelined;
- delete widg;
delete widg_layout;
+ delete widg;
}
void ProgramDock::setup(machine::QtMipsMachine *machine) {