Memomry leak:

- Member _settings on some settings pages was not deleted


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2864 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-05-07 23:58:17 +00:00
parent f239e7e4d4
commit a640995298
10 changed files with 27 additions and 7 deletions

View File

@ -59,6 +59,11 @@ AppearancePage::AppearancePage(QWidget * parent, Qt::WFlags flags)
#endif #endif
} }
AppearancePage::~AppearancePage()
{
delete _settings;
}
/** Saves the changes on this page */ /** Saves the changes on this page */
bool bool
AppearancePage::save(QString &errmsg) AppearancePage::save(QString &errmsg)

View File

@ -40,7 +40,7 @@ class AppearancePage : public ConfigPage
/** Default Constructor */ /** Default Constructor */
AppearancePage(QWidget * parent = 0, Qt::WFlags flags = 0); AppearancePage(QWidget * parent = 0, Qt::WFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~AppearancePage() {} ~AppearancePage();
/** Saves the changes on this page */ /** Saves the changes on this page */
bool save(QString &errmsg); bool save(QString &errmsg);

View File

@ -55,6 +55,11 @@ CryptoPage::CryptoPage(QWidget * parent, Qt::WFlags flags)
#endif #endif
} }
CryptoPage::~CryptoPage()
{
delete _settings;
}
void void
CryptoPage::closeEvent (QCloseEvent * event) CryptoPage::closeEvent (QCloseEvent * event)
{ {

View File

@ -39,7 +39,7 @@ class CryptoPage : public ConfigPage
/** Default Constructor */ /** Default Constructor */
CryptoPage(QWidget * parent = 0, Qt::WFlags flags = 0); CryptoPage(QWidget * parent = 0, Qt::WFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~CryptoPage() {} ~CryptoPage();
/** Saves the changes on this page */ /** Saves the changes on this page */

View File

@ -49,10 +49,10 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
} }
/** Destructor */ /** Destructor */
/*GeneralPage::~GeneralPage() GeneralPage::~GeneralPage()
{ {
delete _settings; delete _settings;
}*/ }
/** Saves the changes on this page */ /** Saves the changes on this page */
bool bool

View File

@ -42,7 +42,7 @@ public:
/** Default Constructor */ /** Default Constructor */
GeneralPage(QWidget * parent = 0, Qt::WFlags flags = 0); GeneralPage(QWidget * parent = 0, Qt::WFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~GeneralPage() {} ~GeneralPage();
/** Saves the changes on this page */ /** Saves the changes on this page */
bool save(QString &errmsg); bool save(QString &errmsg);

View File

@ -55,6 +55,11 @@ NotifyPage::NotifyPage(QWidget * parent, Qt::WFlags flags)
#endif #endif
} }
NotifyPage::~NotifyPage()
{
delete _settings;
}
void void
NotifyPage::closeEvent (QCloseEvent * event) NotifyPage::closeEvent (QCloseEvent * event)
{ {

View File

@ -37,8 +37,8 @@ class NotifyPage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
NotifyPage(QWidget * parent = 0, Qt::WFlags flags = 0); NotifyPage(QWidget * parent = 0, Qt::WFlags flags = 0);
~NotifyPage() {}
/** Default Destructor */ /** Default Destructor */
~NotifyPage();
/** Saves the changes on this page */ /** Saves the changes on this page */
bool save(QString &errmsg); bool save(QString &errmsg);

View File

@ -50,6 +50,11 @@ SoundPage::SoundPage(QWidget * parent, Qt::WFlags flags)
#endif #endif
} }
SoundPage::~SoundPage()
{
delete _settings;
}
/** Saves the changes on this page */ /** Saves the changes on this page */
bool bool
SoundPage::save(QString &errmsg) SoundPage::save(QString &errmsg)

View File

@ -37,7 +37,7 @@ public:
/** Default Constructor */ /** Default Constructor */
SoundPage(QWidget * parent = 0, Qt::WFlags flags = 0); SoundPage(QWidget * parent = 0, Qt::WFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~SoundPage() {} ~SoundPage();
/** Saves the changes on this page */ /** Saves the changes on this page */
bool save(QString &errmsg); bool save(QString &errmsg);