From: Yang Gu <gyagp0@gmail.com>
To: ofono@ofono.org
Subject: [PATCH v2 2/3] Some instances in ControlWidget need to be deleted
Date: Fri, 01 Oct 2010 01:52:25 +0800 [thread overview]
Message-ID: <1285869146-30183-3-git-send-email-gyagp0@gmail.com> (raw)
In-Reply-To: <1285869146-30183-1-git-send-email-gyagp0@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
---
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
next prev parent reply other threads:[~2010-09-30 17:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 17:52 [PATCH v2 0/3] Patch Description Yang Gu
2010-09-30 17:52 ` [PATCH v2 1/3] Move def of class ControlWidget to header file Yang Gu
2010-09-30 17:52 ` Yang Gu [this message]
2010-09-30 17:52 ` [PATCH v2 3/3] Enable Qt Script Yang Gu
2010-10-13 20:19 ` [PATCH v2 0/3] Patch Description Denis Kenzior
2010-10-14 11:17 ` Gu, Yang
2010-10-14 11:23 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1285869146-30183-3-git-send-email-gyagp0@gmail.com \
--to=gyagp0@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.