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

(cherry picked from commit 3477bc102d)
This commit is contained in:
Martin 2024-01-28 20:08:44 +01:00
parent 74be1c67dd
commit 89282a94ee

View File

@ -2715,6 +2715,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);