aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview/alu.cpp')
-rw-r--r--qtmips_gui/coreview/alu.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/alu.cpp b/qtmips_gui/coreview/alu.cpp
index e1494cb..5494b3f 100644
--- a/qtmips_gui/coreview/alu.cpp
+++ b/qtmips_gui/coreview/alu.cpp
@@ -58,6 +58,13 @@ coreview::Alu::Alu() : QGraphicsItem(nullptr), name("ALU", this) {
setPos(x(), y()); // set connector's position
}
+coreview::Alu::~Alu() {
+ delete con_in_a;
+ delete con_in_b;
+ delete con_out;
+ delete con_ctl;
+}
+
QRectF coreview::Alu::boundingRect() const {
return QRectF(-PENW / 2, -PENW / 2, WIDTH + PENW, HEIGHT + PENW);
}