[Cmake-commits] [cmake-commits] david.cole committed cmake.cxx 1.441 1.442

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Dec 28 13:44:41 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv8509/Source

Modified Files:
	cmake.cxx 
Log Message:
Fix mem leak reported by valgrind.


Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.441
retrieving revision 1.442
diff -C 2 -d -r1.441 -r1.442
*** cmake.cxx	23 Dec 2009 18:51:45 -0000	1.441
--- cmake.cxx	28 Dec 2009 18:44:38 -0000	1.442
***************
*** 4398,4402 ****
                   const std::vector<std::string>& nativeOptions,
                   bool clean)
! { 
    if(!cmSystemTools::FileIsDirectory(dir.c_str()))
      {
--- 4398,4402 ----
                   const std::vector<std::string>& nativeOptions,
                   bool clean)
! {
    if(!cmSystemTools::FileIsDirectory(dir.c_str()))
      {
***************
*** 4418,4423 ****
      return 1;
      }
!   cmGlobalGenerator* gen =
!     this->CreateGlobalGenerator(it.GetValue());
    std::string output;
    std::string projName;
--- 4418,4423 ----
      return 1;
      }
!   std::auto_ptr<cmGlobalGenerator> gen(
!     this->CreateGlobalGenerator(it.GetValue()));
    std::string output;
    std::string projName;



More information about the Cmake-commits mailing list