From 84230e606e8de3f7c01aa9006c7f14caf25c5c49 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 15 Oct 2020 17:51:31 -0400 Subject: Cleanup load options when choosing to not open specific BinaryView types during open with options. --- binaryview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index 8e3f115a..d355246d 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -3048,7 +3048,7 @@ Ref BinaryView::GetLoadSettings(const string& typeName) void BinaryView::SetLoadSettings(const string& typeName, Ref settings) { - BNBinaryViewSetLoadSettings(m_object, typeName.c_str(), settings->GetObject()); + BNBinaryViewSetLoadSettings(m_object, typeName.c_str(), settings ? settings->GetObject() : nullptr); } -- cgit v1.3.1