mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 17:58:03 +02:00
PoChecker: TryCreatePoFamilyList function correctly frees PoFamilyList when necessary, there is no need to make an extra check if it needs to be freed after this function is called.
git-svn-id: trunk@58411 -
This commit is contained in:
parent
0af470d62f
commit
74c6d01e3e
@ -244,11 +244,7 @@ begin
|
||||
AMasterList := GetSelectedMasterFiles;
|
||||
try
|
||||
if TryCreatePoFamilyList(AMasterList, SL, ALangID) then
|
||||
RunSelectedTests(SL, StatL, DupL)
|
||||
else
|
||||
begin
|
||||
if Assigned(PoFamilyList) then FreeAndNil(PoFamilyList);
|
||||
end;
|
||||
RunSelectedTests(SL, StatL, DupL);
|
||||
finally
|
||||
SL.Free;
|
||||
StatL.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user