Debugger: fixed crash in disassembler (dangling pointer, due to wrong object in free notify)

(cherry picked from commit aeffa71e22)
This commit is contained in:
Martin 2024-03-14 15:14:19 +01:00
parent f273c758fb
commit 09f989b452

View File

@ -4961,7 +4961,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;