mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
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:
parent
f239e7e4d4
commit
a640995298
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -55,6 +55,11 @@ CryptoPage::CryptoPage(QWidget * parent, Qt::WFlags flags)
|
||||
#endif
|
||||
}
|
||||
|
||||
CryptoPage::~CryptoPage()
|
||||
{
|
||||
delete _settings;
|
||||
}
|
||||
|
||||
void
|
||||
CryptoPage::closeEvent (QCloseEvent * event)
|
||||
{
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -55,6 +55,11 @@ NotifyPage::NotifyPage(QWidget * parent, Qt::WFlags flags)
|
||||
#endif
|
||||
}
|
||||
|
||||
NotifyPage::~NotifyPage()
|
||||
{
|
||||
delete _settings;
|
||||
}
|
||||
|
||||
void
|
||||
NotifyPage::closeEvent (QCloseEvent * event)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user