summaryrefslogtreecommitdiff
path: root/externallibrary.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2025-04-14 08:33:03 -0400
committerPeter LaFosse <peter@vector35.com>2025-04-29 09:16:13 -0400
commit6697a9d2ce4bf7d544f98dafea7edfaecd7b6731 (patch)
tree722cbb75a8331131caa1e57588815a3121f4bbc5 /externallibrary.cpp
parentd1722c0b34f313590f1f5a1274985433a58a7a5f (diff)
Fix memory leaks in Sections, Segments, Settings, ExternalLibrary, and BackgroundTask
Diffstat (limited to 'externallibrary.cpp')
-rw-r--r--externallibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/externallibrary.cpp b/externallibrary.cpp
index 42e759fe..0ae2a89a 100644
--- a/externallibrary.cpp
+++ b/externallibrary.cpp
@@ -92,7 +92,7 @@ Ref<ExternalLibrary> ExternalLocation::GetExternalLibrary()
BNExternalLibrary* lib = BNExternalLocationGetExternalLibrary(m_object);
if (!lib)
return nullptr;
- return new ExternalLibrary(BNNewExternalLibraryReference(lib));
+ return new ExternalLibrary(lib);
}