mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 19:39:28 +02:00
Converter: fix a memory-leak in ChgEncodingDlg
git-svn-id: trunk@30982 -
This commit is contained in:
parent
dfe29b10e2
commit
e41d0bfaf5
@ -277,6 +277,7 @@ begin
|
|||||||
|
|
||||||
// find files
|
// find files
|
||||||
IncludeFilterRegExpr:=TRegExpr.Create;
|
IncludeFilterRegExpr:=TRegExpr.Create;
|
||||||
|
try
|
||||||
Expr:=FileFilterCombobox.Text;
|
Expr:=FileFilterCombobox.Text;
|
||||||
if not RegExprCheckBox.Checked then
|
if not RegExprCheckBox.Checked then
|
||||||
Expr:=SimpleSyntaxToRegExpr(Expr);
|
Expr:=SimpleSyntaxToRegExpr(Expr);
|
||||||
@ -340,6 +341,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
FindCloseUTF8(FileInfo);
|
FindCloseUTF8(FileInfo);
|
||||||
until false;
|
until false;
|
||||||
|
finally
|
||||||
|
IncludeFilterRegExpr.Free;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TChgEncodingDialog.UpdatePreview;
|
procedure TChgEncodingDialog.UpdatePreview;
|
||||||
|
Loading…
Reference in New Issue
Block a user