summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-04-17 16:06:20 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-04-17 16:06:20 (GMT)
commit968706b29eaa4349e9cce509a831957fd0524573 (patch)
tree159bf09f0ca9d3e1462be4b619c9c3aa429018d9 /Source/CPack/cpack.cxx
parent8950fca4ce770f98df93aa95a0bb563589175c80 (diff)
downloadCMake-968706b29eaa4349e9cce509a831957fd0524573.zip
CMake-968706b29eaa4349e9cce509a831957fd0524573.tar.gz
CMake-968706b29eaa4349e9cce509a831957fd0524573.tar.bz2
BUG: Fix mem leak. Thanks, Mathieu.
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index b36e230..90ec26b 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -222,7 +222,7 @@ int main (int argc, char *argv[])
cminst.RemoveUnscriptableCommands();
cmGlobalGenerator cmgg;
cmgg.SetCMakeInstance(&cminst);
- cmLocalGenerator* cmlg = cmgg.CreateLocalGenerator();
+ std::auto_ptr<cmLocalGenerator> cmlg(cmgg.CreateLocalGenerator());
cmMakefile* globalMF = cmlg->GetMakefile();
bool cpackConfigFileSpecified = true;