mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
codetools: fixed cleaning up in FixMissingH2PasDirectives
git-svn-id: trunk@14532 -
This commit is contained in:
parent
7b44b9d924
commit
3ed0e65d2b
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user