mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 14:09:40 +02:00
SynEdit: fixed access to freed object (FLineMapView will be destroyed, but before it may access the plugin)
This commit is contained in:
parent
2fc5a52c9a
commit
33a06985b9
@ -1047,7 +1047,7 @@ begin
|
||||
if Editor <> nil then begin
|
||||
TSynEdit(Editor).UnRegisterStatusChangedHandler(@DoWidthChanged);
|
||||
TSynEdit(Editor).UnRegisterStatusChangedHandler(@DoHandleCreated);
|
||||
if (FLineMapView <> nil) and not (csDestroying in Editor.Componentstate) then begin
|
||||
if (FLineMapView <> nil) then begin
|
||||
TSynEdit(Editor).TextViewsManager.RemoveSynTextView(FLineMapView, True);
|
||||
TSynEdit(Editor).Invalidate;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user