diff options
author | Yang Gu <gyagp0@gmail.com> | 2010-10-01 01:52:25 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-10-13 09:42:04 -0500 |
commit | 49b0df7d5442b063c51af805797fc6d837874153 (patch) | |
tree | ea4546fd6d06b719448f3f9b02d32bf70fec0b3a | |
parent | 8c6924dcf1f27405a9df46eaa0e23873257ba8fd (diff) | |
download | phonesim-49b0df7d5442b063c51af805797fc6d837874153.tar.gz |
Some instances in ControlWidget need to be deleted
-rw-r--r-- | src/control.cpp | 6 | ||||
-rw-r--r-- | src/control.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/control.cpp b/src/control.cpp index 458ee43..9e2c1f0 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -89,6 +89,12 @@ void ControlWidget::closeEvent(QCloseEvent *event) hide(); } +ControlWidget::~ControlWidget() +{ + delete ui; + delete translator; +} + Control::Control(const QString& ruleFile, SimRules *sr, QObject *parent) : HardwareManipulator(sr, parent), widget(new ControlWidget(ruleFile, this)) diff --git a/src/control.h b/src/control.h index 3577e8d..95536dc 100644 --- a/src/control.h +++ b/src/control.h @@ -31,6 +31,7 @@ class ControlWidget : public QWidget Q_OBJECT public: ControlWidget( const QString&, Control*); + ~ControlWidget(); void handleFromData( const QString& ); void handleToData( const QString& ); |