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

(cherry picked from commit fb279cada4)
This commit is contained in:
Martin 2024-01-25 12:49:19 +01:00
parent b086f9dfa0
commit ca21254ef0

View File

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