forked from qt-creator/qt-creator
Fix some insignificant memory leaks.
Reviewed-By: hjk
This commit is contained in:
@@ -206,6 +206,7 @@ WelcomeMode::~WelcomeMode()
|
||||
{
|
||||
QSettings *settings = ICore::instance()->settings();
|
||||
settings->setValue("General/WelcomeTab", m_d->btnGrp->checkedId());
|
||||
delete m_d->m_widget;
|
||||
delete m_d;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,11 +43,10 @@ namespace Internal {
|
||||
class DebuggerSettings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DebuggerSettings(QObject *parent = 0);
|
||||
~DebuggerSettings();
|
||||
|
||||
|
||||
void insertItem(int code, Core::Utils::SavedAction *item);
|
||||
Core::Utils::SavedAction *item(int code) const;
|
||||
|
||||
|
||||
@@ -418,6 +418,7 @@ void DebuggerPlugin::shutdown()
|
||||
m_manager->shutdown();
|
||||
|
||||
writeSettings();
|
||||
delete DebuggerSettings::instance();
|
||||
|
||||
//qDebug() << "DebuggerPlugin::~DebuggerPlugin";
|
||||
removeObject(m_debugMode);
|
||||
|
||||
@@ -66,7 +66,6 @@ class FakeVimSettings : public QObject
|
||||
public:
|
||||
FakeVimSettings();
|
||||
~FakeVimSettings();
|
||||
|
||||
void insertItem(int code, Core::Utils::SavedAction *item,
|
||||
const QString &longname = QString(),
|
||||
const QString &shortname = QString());
|
||||
@@ -77,7 +76,7 @@ public:
|
||||
void readSettings(QSettings *settings);
|
||||
void writeSettings(QSettings *settings);
|
||||
|
||||
public:
|
||||
private:
|
||||
QHash<int, Core::Utils::SavedAction *> m_items;
|
||||
QHash<QString, int> m_nameToCode;
|
||||
QHash<int, QString> m_codeToName;
|
||||
|
||||
@@ -280,6 +280,7 @@ void FakeVimPluginPrivate::shutdown()
|
||||
delete m_fakeVimOptionsPage;
|
||||
m_fakeVimOptionsPage = 0;
|
||||
theFakeVimSettings()->writeSettings(Core::ICore::instance()->settings());
|
||||
delete theFakeVimSettings();
|
||||
}
|
||||
|
||||
bool FakeVimPluginPrivate::initialize()
|
||||
|
||||
Reference in New Issue
Block a user