IDE: fixed double release linkscanner

git-svn-id: trunk@41161 -
This commit is contained in:
mattias 2013-05-12 18:23:36 +00:00
parent 8e652015ad
commit b24a4ade47

View File

@ -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