* Tools/CHMMaker: fix potential memory leak.

git-svn-id: trunk@46238 -
This commit is contained in:
reiniero 2014-09-15 12:16:21 +00:00
parent 187a700a04
commit 90669d5591

View File

@ -281,9 +281,12 @@ begin
Exit;
end;
LHelpConn := TLHelpConnection.Create;
LHelpConn.StartHelpServer('chmmaker', LHelpName);
LHelpConn.OpenFile(ChmFileNameEdit.FileName);
LHelpConn.Free;
try
LHelpConn.StartHelpServer('chmmaker', LHelpName);
LHelpConn.OpenFile(ChmFileNameEdit.FileName);
finally
LHelpConn.Free;
end;
end;
procedure TCHMForm.FileListBoxDrawItem(Control: TWinControl; Index: Integer;