mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-23 04:59:22 +02:00
fpvectorial: freed PDF document
This commit is contained in:
parent
6dd448b1e2
commit
b495717b01
@ -136,6 +136,7 @@ type
|
||||
procedure AddImage(AImage: TvRasterImage; ABox: TvBoundBox);
|
||||
public
|
||||
constructor Create; override;
|
||||
destructor Destroy; override;
|
||||
procedure WriteToFile(AFileName: String; AData: TvVectorialDocument); override;
|
||||
procedure WriteToStream(AStream: TStream; AData: TvVectorialDocument); override;
|
||||
end;
|
||||
@ -810,6 +811,12 @@ begin
|
||||
gTTFontCache.BuildFontCache;
|
||||
end;
|
||||
|
||||
destructor TvPDFVectorialWriter.Destroy;
|
||||
begin
|
||||
inherited;
|
||||
FDocument.Free;
|
||||
end;
|
||||
|
||||
procedure TvPDFVectorialWriter.WriteToFile(AFileName: String; AData: TvVectorialDocument);
|
||||
var
|
||||
OStream: TFileStream;
|
||||
|
Loading…
Reference in New Issue
Block a user