Commit 63a0225e authored by dt's avatar dt

Fix some insignificant memory leaks.

Reviewed-By: hjk
parent d7af85a0
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment