From d01f9751675f0cac87621bae9071379f4af4aae0 Mon Sep 17 00:00:00 2001 From: Nav Date: Fri, 22 Sep 2023 21:44:37 +0100 Subject: [PATCH] Fixed seg fault bug in snapshot diff window (caused by invalid `this` pointer) --- .../SnapshotManager/SnapshotDiff/SnapshotDiff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp index b81e8509..47b8b089 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp @@ -397,7 +397,7 @@ namespace Widgets const auto& dataA = *(this->hexViewerDataA); const auto& dataB = *(this->hexViewerDataB); - static const auto isAddressExcluded = [this] (Targets::TargetMemoryAddress address) { + const auto isAddressExcluded = [this] (Targets::TargetMemoryAddress address) { for (const auto& excludedRegion : this->excludedRegionsA) { if (excludedRegion.addressRange.contains(address)) { return true;