summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index a0cc6b0..c5350b9 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1218,7 +1218,7 @@ void cmMakefile::RemoveFunctionBlocker(const char *name,
if ((*pos)->ShouldRemove(name, args, *this))
{
cmFunctionBlocker* b = *pos;
- m_FunctionBlockers.remove(*pos);
+ m_FunctionBlockers.remove(b);
delete b;
break;
}