summaryrefslogtreecommitdiff
path: root/filemetadata.cpp
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2022-10-20 11:17:20 +0800
committerXusheng <xusheng@vector35.com>2022-10-20 11:17:20 +0800
commitb160aa0bac77a45bd7c4f39c6fe0263059239d4b (patch)
tree22be3f2fa522da713f92b58b151947df7cf34dd6 /filemetadata.cpp
parent824aa7f7fc88713e74932c6d3230a6fb2d29df97 (diff)
Properly remove the debugger view from the FileMetadata after the target exits. Fix https://github.com/Vector35/debugger/issues/279
Diffstat (limited to 'filemetadata.cpp')
-rw-r--r--filemetadata.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/filemetadata.cpp b/filemetadata.cpp
index 84c25e62..47190829 100644
--- a/filemetadata.cpp
+++ b/filemetadata.cpp
@@ -546,6 +546,12 @@ bool FileMetadata::IsSnapshotDataAppliedWithoutError() const
}
+void FileMetadata::UnregisterViewOfType(const std::string& type, BinaryNinja::Ref<BinaryNinja::BinaryView> data)
+{
+ BNUnregisterViewOfType(m_object, type.c_str(), data->GetObject());
+}
+
+
SaveSettings::SaveSettings()
{
m_object = BNCreateSaveSettings();