summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index 993d19ab..293559cf 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -2118,7 +2118,7 @@ Ref<Section> 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;
}