From aeffa71e22a9cb54b31c68a7e0efe7450c170b16 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 14 Mar 2024 15:14:19 +0100 Subject: [PATCH] Debugger: fixed crash in disassembler (dangling pointer, due to wrong object in free notify) --- components/debuggerintf/dbgintfdebuggerbase.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/debuggerintf/dbgintfdebuggerbase.pp b/components/debuggerintf/dbgintfdebuggerbase.pp index 7f3c81e03c..e54e63c4c9 100644 --- a/components/debuggerintf/dbgintfdebuggerbase.pp +++ b/components/debuggerintf/dbgintfdebuggerbase.pp @@ -4971,7 +4971,7 @@ begin OldId := MergeRng.RangeStartAddr; MergeRng.Merge(ARange); if assigned(FOnMerge) - then FOnMerge(ARange, MergeRng); + then FOnMerge(MergeRng, ARange); FFreeItemLock := True; // prevent destruction of MergeRng Delete(OldId); FFreeItemLock := False;