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();
|
cminst.RemoveUnscriptableCommands();
|
||||||
cmGlobalGenerator cmgg;
|
cmGlobalGenerator cmgg;
|
||||||
cmgg.SetCMakeInstance(&cminst);
|
cmgg.SetCMakeInstance(&cminst);
|
||||||
cmLocalGenerator* cmlg = cmgg.CreateLocalGenerator();
|
std::auto_ptr<cmLocalGenerator> cmlg(cmgg.CreateLocalGenerator());
|
||||||
cmMakefile* globalMF = cmlg->GetMakefile();
|
cmMakefile* globalMF = cmlg->GetMakefile();
|
||||||
|
|
||||||
bool cpackConfigFileSpecified = true;
|
bool cpackConfigFileSpecified = true;
|
||||||
|
|
Loading…
Reference in New Issue