diff options
| author | Rusty Wagner <rusty@vector35.com> | 2015-03-03 00:19:53 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2015-03-03 00:19:53 -0500 |
| commit | e1acceecfd1a9b30a1fa19599dce049b50dfaa36 (patch) | |
| tree | 98f8320c53f2217b0ee31284400de838cf72afee /functiongraph.cpp | |
| parent | e931fbb18ed367745411592e3c408c1a04155a57 (diff) | |
Fix crashes on file close when analysis is still running
Diffstat (limited to 'functiongraph.cpp')
| -rw-r--r-- | functiongraph.cpp | 4 |
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); } |
