Commit 09945b46 authored by Juha Manninen's avatar Juha Manninen
Browse files

LCL: Use "try finally" block for function DefaultInputDialog. Issue #35451,...

LCL: Use "try finally" block for function DefaultInputDialog. Issue #35451, patch from Serge Anvarov.

git-svn-id: trunk@61064 -
parent 94fcd9ed
......@@ -33,7 +33,7 @@ begin
Form.DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('ShowInputDialog'){$ENDIF};
Form.CreateNew(nil, 0);
with Form do
begin
try
PopupMode := pmAuto;
BorderStyle := bsDialog;
Caption := InputCaption;
......@@ -95,6 +95,7 @@ begin
Value := Edit.Text;
Result := True;
end;
finally
Form.Free;
end;
end;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment