fixed memleak of LazDocPathList

git-svn-id: trunk@7832 -
This commit is contained in:
vincents 2005-09-26 10:01:00 +00:00
parent ebdafeb975
commit 8cb0cd4a93

View File

@ -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