[Cmake-commits] [cmake-commits] david.cole committed cpack.cxx 1.42 1.43
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Apr 17 12:06:23 EDT 2008
Update of /cvsroot/CMake/CMake/Source/CPack
In directory public:/mounts/ram/cvs-serv20038/Source/CPack
Modified Files:
cpack.cxx
Log Message:
BUG: Fix mem leak. Thanks, Mathieu.
Index: cpack.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CPack/cpack.cxx,v
retrieving revision 1.42
retrieving revision 1.43
diff -C 2 -d -r1.42 -r1.43
*** cpack.cxx 13 Dec 2007 22:56:49 -0000 1.42
--- cpack.cxx 17 Apr 2008 16:06:20 -0000 1.43
***************
*** 223,227 ****
cmGlobalGenerator cmgg;
cmgg.SetCMakeInstance(&cminst);
! cmLocalGenerator* cmlg = cmgg.CreateLocalGenerator();
cmMakefile* globalMF = cmlg->GetMakefile();
--- 223,227 ----
cmGlobalGenerator cmgg;
cmgg.SetCMakeInstance(&cminst);
! std::auto_ptr<cmLocalGenerator> cmlg(cmgg.CreateLocalGenerator());
cmMakefile* globalMF = cmlg->GetMakefile();
More information about the Cmake-commits
mailing list