summaryrefslogtreecommitdiff
path: root/flowgraphnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flowgraphnode.cpp')
-rw-r--r--flowgraphnode.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/flowgraphnode.cpp b/flowgraphnode.cpp
index 5021e842..cf25b80c 100644
--- a/flowgraphnode.cpp
+++ b/flowgraphnode.cpp
@@ -131,7 +131,13 @@ void FlowGraphNode::SetLines(const vector<DisassemblyTextLine>& lines)
}
BNSetFlowGraphNodeLines(m_object, buf, lines.size());
- BNFreeDisassemblyTextLines(buf, lines.size());
+
+ for (size_t i = 0; i < lines.size(); i++)
+ {
+ InstructionTextToken::FreeInstructionTextTokenList(buf[i].tokens, buf[i].count);
+ Tag::FreeTagList(buf[i].tags, buf[i].tagCount);
+ }
+ delete[] buf;
m_cachedLines = lines;
m_cachedLinesValid = true;