mirror of https://gitlab.com/basile.b/dexed.git
leak
This commit is contained in:
parent
d6732c15e4
commit
7b01053b89
|
@ -2955,13 +2955,17 @@ begin
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
srt := TStringList.Create;
|
srt := TStringList.Create;
|
||||||
srt.Sorted:=true;
|
try
|
||||||
//NOTE: when not sorted linking can fail. This is a recent regression (~2.078)
|
srt.Sorted:=true;
|
||||||
//when detectLibraries is true, sorting is automatic *.a, -Ipath, *.a, -Ipath etc
|
//NOTE: when not sorted linking can fail. This is a recent regression (~2.078)
|
||||||
srt.Duplicates := TDuplicates.dupIgnore;
|
//when detectLibraries is true, sorting is automatic *.a, -Ipath, *.a, -Ipath etc
|
||||||
LibMan.getLibFiles(nil, srt);
|
srt.Duplicates := TDuplicates.dupIgnore;
|
||||||
LibMan.getLibSourcePath(nil, srt);
|
LibMan.getLibFiles(nil, srt);
|
||||||
dmdproc.Parameters.AddStrings(srt);
|
LibMan.getLibSourcePath(nil, srt);
|
||||||
|
dmdproc.Parameters.AddStrings(srt);
|
||||||
|
finally
|
||||||
|
srt.Free;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
deleteDups(dmdproc.Parameters);
|
deleteDups(dmdproc.Parameters);
|
||||||
dmdproc.Execute;
|
dmdproc.Execute;
|
||||||
|
|
Loading…
Reference in New Issue