SynEdit: don't access dangling pointer to FFoldedLinesView. See commit fb279cada4 and ca21254ef0

This commit is contained in:
Martin 2024-01-28 20:08:44 +01:00
parent f0652397b9
commit 3477bc102d

View File

@ -2732,6 +2732,7 @@ begin
FreeAndNil(FBlockSelection);
FreeAndNil(FStrings);
FreeAndNil(FTextViewsManager);
FFoldedLinesView := nil; // destroyed by FTextViewsManager
TSynEditStringList(FLines).DetachSynEdit(Self);
if TSynEditStringList(FLines).AttachedSynEditCount = 0 then
FreeAndNil(fLines);