diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-08-16 22:31:15 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-08-16 22:40:38 -0400 |
| commit | 4fdd54f690e538ddb4e38248144ef3d3e0f817da (patch) | |
| tree | 966fa66915c2ebd4c836cc277715281d4803b36a /binaryview.cpp | |
| parent | 00fc6c96d415bd31ee5ecbec70a8e4de141674cd (diff) | |
Fix ref count bug
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 2 |
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; } |
