From aa0d56f67ff1438eed6e757eb6984be67876548b Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 4 Oct 2009 15:24:33 +0000 Subject: [PATCH] added Destructor's git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1712 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/profile/ProfileWidget.cpp | 7 +++++++ retroshare-gui/src/gui/profile/ProfileWidget.h | 1 + retroshare-gui/src/gui/profile/StatusMessage.cpp | 7 +++++++ retroshare-gui/src/gui/profile/StatusMessage.h | 2 +- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/profile/ProfileWidget.cpp b/retroshare-gui/src/gui/profile/ProfileWidget.cpp index 9847ba6e9..e19af836f 100644 --- a/retroshare-gui/src/gui/profile/ProfileWidget.cpp +++ b/retroshare-gui/src/gui/profile/ProfileWidget.cpp @@ -46,6 +46,13 @@ ProfileWidget::ProfileWidget(QWidget *parent, Qt::WFlags flags) loadDialog(); } +/** Destructor. */ +ProfileWidget::~ProfileWidget() +{ + +} + + void ProfileWidget::closeEvent (QCloseEvent * event) { QWidget::closeEvent(event); diff --git a/retroshare-gui/src/gui/profile/ProfileWidget.h b/retroshare-gui/src/gui/profile/ProfileWidget.h index 622190230..5f1c3733f 100644 --- a/retroshare-gui/src/gui/profile/ProfileWidget.h +++ b/retroshare-gui/src/gui/profile/ProfileWidget.h @@ -35,6 +35,7 @@ class ProfileWidget : public QWidget /** Default constructor */ ProfileWidget(QWidget *parent = 0, Qt::WFlags flags = 0); /** Default destructor */ + ~ProfileWidget(); protected: diff --git a/retroshare-gui/src/gui/profile/StatusMessage.cpp b/retroshare-gui/src/gui/profile/StatusMessage.cpp index 820abc91c..63585f969 100644 --- a/retroshare-gui/src/gui/profile/StatusMessage.cpp +++ b/retroshare-gui/src/gui/profile/StatusMessage.cpp @@ -49,6 +49,13 @@ StatusMessage::StatusMessage(QWidget *parent, Qt::WFlags flags) } +/** Destructor. */ +StatusMessage::~StatusMessage() +{ + delete _settings; + +} + void StatusMessage::closeEvent (QCloseEvent * event) { QDialog::closeEvent(event); diff --git a/retroshare-gui/src/gui/profile/StatusMessage.h b/retroshare-gui/src/gui/profile/StatusMessage.h index 04536adef..5a68158c4 100644 --- a/retroshare-gui/src/gui/profile/StatusMessage.h +++ b/retroshare-gui/src/gui/profile/StatusMessage.h @@ -37,7 +37,7 @@ class StatusMessage : public QDialog /** Default constructor */ StatusMessage(QWidget *parent = 0, Qt::WFlags flags = 0); /** Default destructor */ - + ~StatusMessage(); protected: void closeEvent (QCloseEvent * event);