mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:59:44 +02:00
chmhelp: Fix memory leak in TLHelpConnector (see forum https://forum.lazarus.freepascal.org/index.php/topic,42832.msg299208.html).
git-svn-id: trunk@59289 -
This commit is contained in:
parent
8a6bcba75f
commit
f3da779450
@ -93,6 +93,7 @@ type
|
||||
procedure SetLHelpPath(AValue: string);
|
||||
public
|
||||
constructor Create(TheOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
function ShowNode(Node: THelpNode; var ErrMsg: string): TShowHelpResult; override;
|
||||
procedure Assign(Source: TPersistent); override;
|
||||
procedure Load(Storage: TConfigStorage); override;
|
||||
@ -130,6 +131,12 @@ begin
|
||||
AddSupportedMimeType(CHMMimeType);
|
||||
end;
|
||||
|
||||
destructor TLHelpConnector.Destroy;
|
||||
begin
|
||||
FConnection.Free;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
function TLHelpConnector.ShowNode(Node: THelpNode; var ErrMsg: string
|
||||
): TShowHelpResult;
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user