diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index bc013f9..ed70c07 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2395,7 +2395,8 @@ bool cmMakefile::ExpandArguments( return !cmSystemTools::GetFatalErrorOccured(); } -void cmMakefile::RemoveFunctionBlocker(const cmListFileFunction& lff) +cmsys::auto_ptr<cmFunctionBlocker> +cmMakefile::RemoveFunctionBlocker(const cmListFileFunction& lff) { // loop over all function blockers to see if any block this command std::list<cmFunctionBlocker *>::reverse_iterator pos; @@ -2406,12 +2407,11 @@ void cmMakefile::RemoveFunctionBlocker(const cmListFileFunction& lff) { cmFunctionBlocker* b = *pos; this->FunctionBlockers.remove(b); - delete b; - break; + return cmsys::auto_ptr<cmFunctionBlocker>(b); } } - return; + return cmsys::auto_ptr<cmFunctionBlocker>(); } void cmMakefile::SetHomeDirectory(const char* dir) |