mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 05:41:16 +02:00
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:
parent
371d85a673
commit
fb279cada4
@ -8968,6 +8968,8 @@ begin
|
||||
FreeAndNil(BufferBitmap);
|
||||
{$ENDIF}
|
||||
SurrenderPrimarySelection;
|
||||
if FFoldedLinesView <> nil then
|
||||
FFoldedLinesView.LinesInWindow := -1; // Mark as "not HandleAllocated"
|
||||
inherited DestroyWnd;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user