Commit 1a248b1b authored by Ulf Hermann's avatar Ulf Hermann

Valgrind: Remove factories from object pool when destroying them

Otherwise we get crashes on exit.

Change-Id: I806f374ba8f835c9e4361599aa901cfc4b2f0720
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 83d958ae
...@@ -1014,7 +1014,7 @@ void initCallgrindTool() ...@@ -1014,7 +1014,7 @@ void initCallgrindTool()
void destroyCallgrindTool() void destroyCallgrindTool()
{ {
ExtensionSystem::PluginManager::addObject(theCallgrindRunControlFactory); ExtensionSystem::PluginManager::removeObject(theCallgrindRunControlFactory);
delete theCallgrindRunControlFactory; delete theCallgrindRunControlFactory;
theCallgrindRunControlFactory = 0; theCallgrindRunControlFactory = 0;
} }
......
...@@ -728,7 +728,7 @@ void initMemcheckTool() ...@@ -728,7 +728,7 @@ void initMemcheckTool()
void destroyMemcheckTool() void destroyMemcheckTool()
{ {
ExtensionSystem::PluginManager::addObject(theMemcheckRunControlFactory); ExtensionSystem::PluginManager::removeObject(theMemcheckRunControlFactory);
delete theMemcheckRunControlFactory; delete theMemcheckRunControlFactory;
theMemcheckRunControlFactory = 0; theMemcheckRunControlFactory = 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