SynEdit: prevent fold-view CalculateMaps assert during destroy. Once the handle is destroyed, the HL will scan delayed. Issue #40720

This commit is contained in:
Martin 2024-01-25 12:49:19 +01:00
parent 371d85a673
commit fb279cada4

View File

@ -8968,6 +8968,8 @@ begin
FreeAndNil(BufferBitmap);
{$ENDIF}
SurrenderPrimarySelection;
if FFoldedLinesView <> nil then
FFoldedLinesView.LinesInWindow := -1; // Mark as "not HandleAllocated"
inherited DestroyWnd;
end;