mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 18:39:10 +02:00
IDE: fixed double release linkscanner
git-svn-id: trunk@41161 -
This commit is contained in:
parent
8e652015ad
commit
b24a4ade47
@ -2279,7 +2279,7 @@ begin
|
||||
if FCodeBuffer.Scanner<>nil then
|
||||
DisconnectScanner(FCodeBuffer.Scanner);
|
||||
if FMainLinkScanner<>nil then begin
|
||||
FMainLinkScanner.ReleaseStoreDirectives;
|
||||
DisconnectScanner(FMainLinkScanner);
|
||||
FMainLinkScanner:=nil;
|
||||
end;
|
||||
end;
|
||||
@ -2609,6 +2609,8 @@ begin
|
||||
if i<0 then exit;
|
||||
FLinkScanners.Delete(i);
|
||||
Scanner.ReleaseStoreDirectives;
|
||||
if Scanner=FMainLinkScanner then
|
||||
FMainLinkScanner:=nil;
|
||||
end;
|
||||
|
||||
function TSourceEditorSharedValues.GetIfDefNodeState(x, y: integer
|
||||
|
Loading…
Reference in New Issue
Block a user