BUG: Fix mem leak. Thanks, Mathieu.
This commit is contained in:
parent
8950fca4ce
commit
968706b29e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue