Commit 486aac45 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

PluginManager: Fix potential leak

Detected by valgrind

Change-Id: Id8de8e8f5e3f4e691be818ff0224676345227156
Reviewed-by: default avatarEike Ziller <>
parent 3d9c38f3
......@@ -1251,8 +1251,10 @@ void PluginManagerPrivate::readPluginPaths()
foreach (const QString &pluginFile, pluginFiles) {
PluginSpec *spec = new PluginSpec;
if (!spec->d->read(pluginFile)) // not a Qt Creator plugin
if (!spec->d->read(pluginFile)) { // not a Qt Creator plugin
delete spec;
PluginCollection *collection = 0;
// find correct plugin collection or create a new one
Supports Markdown
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