Converter: fix a memory-leak in ChgEncodingDlg

git-svn-id: trunk@30982 -
This commit is contained in:
juha 2011-05-30 22:15:42 +00:00
parent dfe29b10e2
commit e41d0bfaf5

View File

@ -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;