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