From c6c0b5ba3bfc406cd9870be6caa3a379f60dc49d Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 4 Oct 2009 15:27:22 +0000 Subject: [PATCH] added Destructor for ConnectDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1713 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/connect/ConnectDialog.cpp | 6 +++++- retroshare-gui/src/gui/connect/ConnectDialog.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/connect/ConnectDialog.cpp b/retroshare-gui/src/gui/connect/ConnectDialog.cpp index 36a25754e..8a604a782 100644 --- a/retroshare-gui/src/gui/connect/ConnectDialog.cpp +++ b/retroshare-gui/src/gui/connect/ConnectDialog.cpp @@ -50,7 +50,11 @@ ConnectDialog::ConnectDialog(QWidget *parent, Qt::WFlags flags) } - +/** Destructor. */ +ConnectDialog::~ConnectDialog() +{ + delete _settings; +} /** Overloads the default show() slot so we can set opacity*/ diff --git a/retroshare-gui/src/gui/connect/ConnectDialog.h b/retroshare-gui/src/gui/connect/ConnectDialog.h index 2492d7f64..2cf97fb3d 100644 --- a/retroshare-gui/src/gui/connect/ConnectDialog.h +++ b/retroshare-gui/src/gui/connect/ConnectDialog.h @@ -36,6 +36,7 @@ public: /** Default constructor */ ConnectDialog(QWidget *parent = 0, Qt::WFlags flags = 0); /** Default destructor */ + ~ConnectDialog(); bool loadPeer(std::string id);