From bc56d9b8cc1a4d2a61d72e2a307df472f7a54988 Mon Sep 17 00:00:00 2001 From: wp_xyz Date: Sun, 15 Dec 2024 18:16:59 +0100 Subject: [PATCH] Packager: Fix "New requirement" dialog crashing at closing when no package is selected. Issue #41278 --- packager/addpkgdependencydlg.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/addpkgdependencydlg.pas b/packager/addpkgdependencydlg.pas index 2e1820893b..95adc38688 100644 --- a/packager/addpkgdependencydlg.pas +++ b/packager/addpkgdependencydlg.pas @@ -325,7 +325,7 @@ end; procedure TAddPkgDependencyDialog.OKButtonClick(Sender: TObject); var - NewDependency: TPkgDependency; + NewDependency: TPkgDependency = nil; MinVerTest, MaxVerTest: TPkgVersion; MinMaxVerFlags: TPkgDependencyFlags; i: Integer;