codetools: fixed cleaning up in FixMissingH2PasDirectives

git-svn-id: trunk@14532 -
This commit is contained in:
mattias 2008-03-15 13:31:19 +00:00
parent 7b44b9d924
commit 3ed0e65d2b
2 changed files with 6 additions and 2 deletions

View File

@ -2186,6 +2186,7 @@ begin
LocalChange:=false;
try
GatherH2PasFunctions(ListOfH2PasFunctions,true);
DebugLn(['TCompilerDirectivesTree.FixMissingH2PasDirectives ',ListOfH2PasFunctions=nil]);
if ListOfH2PasFunctions=nil then exit;
FillChar(CurBodyBlock,SizeOf(TBodyBlock),0);
LastDefNode:=nil;
@ -2228,7 +2229,7 @@ begin
EndBodyBlock;
finally
if ListOfH2PasFunctions<>nil then;
if ListOfH2PasFunctions<>nil then
for i:=0 to ListOfH2PasFunctions.Count-1 do
TObject(ListOfH2PasFunctions[i]).Free;
ListOfH2PasFunctions.Free;

View File

@ -9043,7 +9043,10 @@ begin
end;
Result:=DoSaveAll([sfDoNotSaveVirtualFiles]);
if Result<>mrOk then exit;
if Result<>mrOk then begin
DebugLn('TMainIDE.DoBuildLazarus: failed because saving failed');
exit;
end;
MessagesView.BeginBlock;
try