From 968706b29eaa4349e9cce509a831957fd0524573 Mon Sep 17 00:00:00 2001 From: David Cole Date: Thu, 17 Apr 2008 12:06:20 -0400 Subject: BUG: Fix mem leak. Thanks, Mathieu. --- Source/CPack/cpack.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index b36e230..90ec26b 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -222,7 +222,7 @@ int main (int argc, char *argv[]) cminst.RemoveUnscriptableCommands(); cmGlobalGenerator cmgg; cmgg.SetCMakeInstance(&cminst); - cmLocalGenerator* cmlg = cmgg.CreateLocalGenerator(); + std::auto_ptr cmlg(cmgg.CreateLocalGenerator()); cmMakefile* globalMF = cmlg->GetMakefile(); bool cpackConfigFileSpecified = true; -- cgit v0.12