diff --git a/src/plugins/qt4projectmanager/wizards/qtwizard.cpp b/src/plugins/qt4projectmanager/wizards/qtwizard.cpp
index 2de46e0e5f35ad8a3fa6be4c71916073ccda306f..b4c3bddcfb4d335a248e5e82139900d3ea5a632d 100644
--- a/src/plugins/qt4projectmanager/wizards/qtwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/qtwizard.cpp
@@ -126,6 +126,7 @@ bool QtWizard::postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l
             pro->addTarget(target);
         }
         pro->saveSettings();
+        delete pro;
     }
 
     // Post-Generate: Open the project