* 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; Exit;
end; end;
LHelpConn := TLHelpConnection.Create; LHelpConn := TLHelpConnection.Create;
LHelpConn.StartHelpServer('chmmaker', LHelpName); try
LHelpConn.OpenFile(ChmFileNameEdit.FileName); LHelpConn.StartHelpServer('chmmaker', LHelpName);
LHelpConn.Free; LHelpConn.OpenFile(ChmFileNameEdit.FileName);
finally
LHelpConn.Free;
end;
end; end;
procedure TCHMForm.FileListBoxDrawItem(Control: TWinControl; Index: Integer; procedure TCHMForm.FileListBoxDrawItem(Control: TWinControl; Index: Integer;