From 3620538812a9df490ace6b3adf8bd120b7a0027b Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 1 Jul 2019 00:12:52 +0200 Subject: Fix memory leakages which repeat during program operation. There are some singletons left which are allocated/created during main window content population. Signed-off-by: Pavel Pisa --- qtmips_gui/coreview/alu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qtmips_gui/coreview/alu.cpp') 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); } -- cgit v1.2.3