mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 12:16:18 +02:00
* Tools/CHMMaker: fix potential memory leak.
git-svn-id: trunk@46238 -
This commit is contained in:
parent
187a700a04
commit
90669d5591
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user