mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 17:49:28 +02:00
SynEdit: don't access dangling pointer to FFoldedLinesView. See commit fb279cada4
and ca21254ef0
(cherry picked from commit 3477bc102d
)
This commit is contained in:
parent
74be1c67dd
commit
89282a94ee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user