mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 18:49:30 +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(FBlockSelection);
|
||||||
FreeAndNil(FStrings);
|
FreeAndNil(FStrings);
|
||||||
FreeAndNil(FTextViewsManager);
|
FreeAndNil(FTextViewsManager);
|
||||||
|
FFoldedLinesView := nil; // destroyed by FTextViewsManager
|
||||||
TSynEditStringList(FLines).DetachSynEdit(Self);
|
TSynEditStringList(FLines).DetachSynEdit(Self);
|
||||||
if TSynEditStringList(FLines).AttachedSynEditCount = 0 then
|
if TSynEditStringList(FLines).AttachedSynEditCount = 0 then
|
||||||
FreeAndNil(fLines);
|
FreeAndNil(fLines);
|
||||||
|
Loading…
Reference in New Issue
Block a user