Commit 7ed4f6ec authored by Tobias Hunger's avatar Tobias Hunger

ToolChainManager: Do not unregister toolchains on destruction

Change-Id: I9aaa292d4c1b6e7bbccce5ffe4ae780621074c98
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 4e285a11
......@@ -95,7 +95,11 @@ ToolChainManagerPrivate::ToolChainManagerPrivate(ToolChainManager *parent)
{ }
ToolChainManagerPrivate::~ToolChainManagerPrivate()
{ delete m_writer; }
{
qDeleteAll(m_toolChains);
m_toolChains.clear();
delete m_writer;
}
QList<ToolChain *> &ToolChainManagerPrivate::toolChains()
{
......@@ -210,12 +214,6 @@ void ToolChainManager::restoreToolChains()
ToolChainManager::~ToolChainManager()
{
saveToolChains(); // Make sure to save tool chains when closing
// Deregister tool chains
QList<ToolChain *> copy = d->toolChains();
foreach (ToolChain *tc, copy)
deregisterToolChain(tc);
delete d;
m_instance = 0;
}
......
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