Commit 97f3cd22 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

Debugger: Do not leak unused item

Detected by CppCheck.

Change-Id: I0ee57c214566125dce996972a51dba76f3bb963f
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 18af5cef
...@@ -405,14 +405,13 @@ DebuggerSettings::DebuggerSettings() ...@@ -405,14 +405,13 @@ DebuggerSettings::DebuggerSettings()
item->setSettingsKey(debugModeGroup, QLatin1String("GdbCustomDumperCommands")); item->setSettingsKey(debugModeGroup, QLatin1String("GdbCustomDumperCommands"));
item->setDefaultValue(QString()); item->setDefaultValue(QString());
insertItem(ExtraDumperCommands, item); insertItem(ExtraDumperCommands, item);
item = new SavedAction(this);
item = new SavedAction(this); item = new SavedAction(this);
item->setSettingsKey(debugModeGroup, QLatin1String("ExtraDumperFile")); item->setSettingsKey(debugModeGroup, QLatin1String("ExtraDumperFile"));
item->setDefaultValue(QString()); item->setDefaultValue(QString());
insertItem(ExtraDumperFile, item); insertItem(ExtraDumperFile, item);
item = new SavedAction(this);
item = new SavedAction(this);
item->setSettingsKey(debugModeGroup, QLatin1String("GdbPostAttachCommands")); item->setSettingsKey(debugModeGroup, QLatin1String("GdbPostAttachCommands"));
item->setDefaultValue(QString()); item->setDefaultValue(QString());
insertItem(GdbPostAttachCommands, item); insertItem(GdbPostAttachCommands, item);
......
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