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
}
AppearancePage::~AppearancePage()
{
delete _settings;
}
/** Saves the changes on this page */
bool
AppearancePage::save(QString &errmsg)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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