aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/registersdock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/registersdock.cpp')
-rw-r--r--qtmips_gui/registersdock.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtmips_gui/registersdock.cpp b/qtmips_gui/registersdock.cpp
index 12690e2..8250321 100644
--- a/qtmips_gui/registersdock.cpp
+++ b/qtmips_gui/registersdock.cpp
@@ -27,7 +27,9 @@ RegistersDock::RegistersDock(QWidget *parent) : QDockWidget(parent) {
}
RegistersDock::~RegistersDock() {
- delete pc, hi, lo;
+ delete pc;
+ delete hi;
+ delete lo;
for (int i = 0; i < 32; i++)
delete gp[i];
delete layout;