mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 11:09:32 +02:00
SynEdit: don't access dangling pointer to FFoldedLinesView. See commit fb279cada4
and ca21254ef0
This commit is contained in:
parent
f0652397b9
commit
3477bc102d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user