mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 06:12:38 +02:00
IDE: fix AV on terminate
git-svn-id: trunk@58334 -
This commit is contained in:
parent
4c6e2b53b3
commit
1dd9410185
@ -256,7 +256,7 @@ type
|
||||
end;
|
||||
|
||||
var
|
||||
SourceEditorMarks: TSourceMarks;
|
||||
SourceEditorMarks: TSourceMarks = nil;
|
||||
|
||||
implementation
|
||||
|
||||
@ -635,6 +635,8 @@ end;
|
||||
|
||||
destructor TSourceMarks.Destroy;
|
||||
begin
|
||||
if SourceEditorMarks=Self then
|
||||
SourceEditorMarks:=nil;
|
||||
Clear;
|
||||
FreeAndNil(FExtToolsMarks);
|
||||
FreeThenNil(FItems);
|
||||
@ -820,8 +822,5 @@ begin
|
||||
Result := FImgList.GetImageIndex(Resname);
|
||||
end;
|
||||
|
||||
initialization
|
||||
SourceEditorMarks:=nil;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user