Packager: fixed memory leak when trying to add already existing dependency (spotted in merge request !302)

(cherry picked from commit 0ef797a45c)

Co-authored-by: Maxim Ganetsky <maxim@lazarus-ide.org>
This commit is contained in:
Maxim Ganetsky 2024-07-08 22:44:11 +00:00 committed by Maxim Ganetsky
parent a82057a3cf
commit 2586c1d7ae

View File

@ -378,6 +378,7 @@ begin
end;
ModalResult := mrOk;
finally
NewDependency.Free;
MinVerTest.Free;
MaxVerTest.Free;
end;