mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 18:01:29 +02:00
fixed memleak of LazDocPathList
git-svn-id: trunk@7832 -
This commit is contained in:
parent
ebdafeb975
commit
8cb0cd4a93
@ -481,6 +481,8 @@ type
|
||||
|
||||
{ TLazProject - interface class to a Lazarus project }
|
||||
|
||||
{ TLazProject }
|
||||
|
||||
TLazProject = class(TPersistent)
|
||||
private
|
||||
FLazCompilerOptions: TLazCompilerOptions;
|
||||
@ -508,6 +510,9 @@ type
|
||||
procedure SetSessionModified(const AValue: boolean); virtual;
|
||||
public
|
||||
constructor Create(ProjectDescription: TProjectDescriptor); virtual;
|
||||
{$IFDEF EnableLazDoc}
|
||||
destructor Destroy; override;
|
||||
{$ENDIF}
|
||||
function CreateProjectFile(const Filename: string
|
||||
): TLazProjectFile; virtual; abstract;
|
||||
procedure AddFile(ProjectFile: TLazProjectFile;
|
||||
@ -1014,6 +1019,14 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
{$IFDEF EnableLazDoc}
|
||||
destructor TLazProject.Destroy;
|
||||
begin
|
||||
FreeAndNil(FLazDocPathList);
|
||||
inherited Destroy;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
function TLazProject.ShortDescription: string;
|
||||
begin
|
||||
if Title<>'' then
|
||||
|
Loading…
Reference in New Issue
Block a user