mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 04:10:44 +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;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
SourceEditorMarks: TSourceMarks;
|
SourceEditorMarks: TSourceMarks = nil;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
@ -635,6 +635,8 @@ end;
|
|||||||
|
|
||||||
destructor TSourceMarks.Destroy;
|
destructor TSourceMarks.Destroy;
|
||||||
begin
|
begin
|
||||||
|
if SourceEditorMarks=Self then
|
||||||
|
SourceEditorMarks:=nil;
|
||||||
Clear;
|
Clear;
|
||||||
FreeAndNil(FExtToolsMarks);
|
FreeAndNil(FExtToolsMarks);
|
||||||
FreeThenNil(FItems);
|
FreeThenNil(FItems);
|
||||||
@ -820,8 +822,5 @@ begin
|
|||||||
Result := FImgList.GetImageIndex(Resname);
|
Result := FImgList.GetImageIndex(Resname);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
|
||||||
SourceEditorMarks:=nil;
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user