From 551a6ff9bad43474ec2b0ed4dbd363645e985aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Wed, 30 Jul 2014 22:37:05 +0200 Subject: [PATCH] Fix potential memleak --- src/libcalamaresui/modulesystem/ModuleManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcalamaresui/modulesystem/ModuleManager.cpp b/src/libcalamaresui/modulesystem/ModuleManager.cpp index 30ee636cf..7dc3f3c6a 100644 --- a/src/libcalamaresui/modulesystem/ModuleManager.cpp +++ b/src/libcalamaresui/modulesystem/ModuleManager.cpp @@ -145,6 +145,10 @@ ModuleManager::doInit() { m_availableModules.insert( moduleInfo->name(), moduleInfo ); } + else + { + delete moduleInfo; + } } else {