fix leaks of singletons

Merge-request: 265
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Milian Wolff
2011-03-04 16:00:01 +01:00
committed by hjk
parent 8f5e33cfc0
commit 1e3d1982ca
8 changed files with 59 additions and 27 deletions

View File

@@ -76,7 +76,7 @@ void AnalyzerPlugin::AnalyzerPluginPrivate::initialize(const QStringList &argume
{
Q_UNUSED(arguments)
Q_UNUSED(errorString)
m_manager = new AnalyzerManager;
m_manager = new AnalyzerManager(q);
}
@@ -92,6 +92,7 @@ AnalyzerPlugin::~AnalyzerPlugin()
// Unregister objects from the plugin manager's object pool
// Delete members
delete d;
m_instance = 0;
}
bool AnalyzerPlugin::initialize(const QStringList &arguments, QString *errorString)