From 4fdd54f690e538ddb4e38248144ef3d3e0f817da Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 16 Aug 2018 22:31:15 -0400 Subject: Fix ref count bug --- binaryview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index 993d19ab..293559cf 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -2118,7 +2118,7 @@ Ref
BinaryView::GetSectionByName(const string& name) { BNSection* section = BNGetSectionByName(m_object, name.c_str()); if (section) - return new Section(section); + return new Section(BNNewSectionReference(section)); return nullptr; } -- cgit v1.3.1