summaryrefslogtreecommitdiff
path: root/functiongraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'functiongraph.cpp')
-rw-r--r--functiongraph.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/functiongraph.cpp b/functiongraph.cpp
index 405046ea..4e48e3cf 100644
--- a/functiongraph.cpp
+++ b/functiongraph.cpp
@@ -11,6 +11,10 @@ FunctionGraph::FunctionGraph(BNFunctionGraph* graph): m_graph(graph)
FunctionGraph::~FunctionGraph()
{
+ // This object is going away, so ensure that any pending completion routines are
+ // no longer called
+ ClearOnComplete();
+
BNFreeFunctionGraph(m_graph);
}