BUG: Fix mem leak. Thanks, Mathieu.

This commit is contained in:
David Cole 2008-04-17 12:06:20 -04:00
parent 8950fca4ce
commit 968706b29e
1 changed files with 1 additions and 1 deletions

View File

@ -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;