diff options
Diffstat (limited to 'qtmips_gui/coreview/latch.cpp')
-rw-r--r-- | qtmips_gui/coreview/latch.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/latch.cpp b/qtmips_gui/coreview/latch.cpp index f0e2db9..e458f9b 100644 --- a/qtmips_gui/coreview/latch.cpp +++ b/qtmips_gui/coreview/latch.cpp @@ -60,6 +60,15 @@ Latch::Latch(machine::QtMipsMachine *machine, qreal height) : QGraphicsObject(nu connect(machine, SIGNAL(tick()), this, SLOT(tick())); } +Latch::~Latch() { + while (!connectors.isEmpty()) { + ConnectorPair cp = connectors.takeFirst(); + delete cp.in; + delete cp.out; + } + delete wedge_animation; +} + QRectF Latch::boundingRect() const { QRectF b(-PENW / 2, -PENW / 2, WIDTH + PENW, height + PENW); b |= title->boundingRect(); |