mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04: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
|
#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)
|
||||||
|
@ -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);
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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 */
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
@ -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)
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user