mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:39:06 +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);
|
procedure SetLHelpPath(AValue: string);
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
|
destructor Destroy; override;
|
||||||
function ShowNode(Node: THelpNode; var ErrMsg: string): TShowHelpResult; override;
|
function ShowNode(Node: THelpNode; var ErrMsg: string): TShowHelpResult; override;
|
||||||
procedure Assign(Source: TPersistent); override;
|
procedure Assign(Source: TPersistent); override;
|
||||||
procedure Load(Storage: TConfigStorage); override;
|
procedure Load(Storage: TConfigStorage); override;
|
||||||
@ -130,6 +131,12 @@ begin
|
|||||||
AddSupportedMimeType(CHMMimeType);
|
AddSupportedMimeType(CHMMimeType);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
destructor TLHelpConnector.Destroy;
|
||||||
|
begin
|
||||||
|
FConnection.Free;
|
||||||
|
inherited;
|
||||||
|
end;
|
||||||
|
|
||||||
function TLHelpConnector.ShowNode(Node: THelpNode; var ErrMsg: string
|
function TLHelpConnector.ShowNode(Node: THelpNode; var ErrMsg: string
|
||||||
): TShowHelpResult;
|
): TShowHelpResult;
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user