---
src/control.cpp | 6 ++++++
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& );
--
1.7.0.4
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono