From e1acceecfd1a9b30a1fa19599dce049b50dfaa36 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 3 Mar 2015 00:19:53 -0500 Subject: Fix crashes on file close when analysis is still running --- functiongraph.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functiongraph.cpp') 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); } -- cgit v1.3.1