* 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,10 +281,13 @@ begin
Exit; Exit;
end; end;
LHelpConn := TLHelpConnection.Create; LHelpConn := TLHelpConnection.Create;
try
LHelpConn.StartHelpServer('chmmaker', LHelpName); LHelpConn.StartHelpServer('chmmaker', LHelpName);
LHelpConn.OpenFile(ChmFileNameEdit.FileName); LHelpConn.OpenFile(ChmFileNameEdit.FileName);
finally
LHelpConn.Free; LHelpConn.Free;
end; end;
end;
procedure TCHMForm.FileListBoxDrawItem(Control: TWinControl; Index: Integer; procedure TCHMForm.FileListBoxDrawItem(Control: TWinControl; Index: Integer;
ARect: TRect; State: TOwnerDrawState); ARect: TRect; State: TOwnerDrawState);