Debugger: Remove use of addAutoReleasedObject

Change-Id: I9a435448e05f56521eaca7f6ba2ac7780950fa18
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-02-19 15:35:17 +01:00
parent 7945ba7923
commit 6b7db0bae8

View File

@@ -1038,6 +1038,8 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(DebuggerPlugin *plugin)
DebuggerPluginPrivate::~DebuggerPluginPrivate()
{
delete debuggerConsole();
qDeleteAll(m_optionPages);
m_optionPages.clear();
@@ -1272,8 +1274,6 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
"Debugger.Views.OpenMemoryEditor", debugcontext);
cmd->setAttribute(Command::CA_Hide);
m_plugin->addAutoReleasedObject(debuggerConsole());
TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_DEBUGINFO,
tr("Debug Information"));
TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_RUNTIME,