mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 16:09:22 +02:00
* fix memleak in fpcanvas. Patch by wp, mantis #24427 attempt two
git-svn-id: trunk@24555 -
This commit is contained in:
parent
abeb2a3aaa
commit
80b52b2a6a
@ -19,7 +19,6 @@ constructor TFPCustomCanvas.Create;
|
||||
begin
|
||||
inherited create;
|
||||
FClipping := false;
|
||||
FreeAndNil(FClipRegion);
|
||||
FRemovingHelpers := false;
|
||||
FHelpers := TList.Create;
|
||||
FDefaultFont := CreateDefaultFont;
|
||||
@ -29,6 +28,7 @@ end;
|
||||
|
||||
destructor TFPCustomCanvas.Destroy;
|
||||
begin
|
||||
FreeAndNil(FClipRegion);
|
||||
FRemovingHelpers := True;
|
||||
// first remove all helper references
|
||||
RemoveHelpers;
|
||||
|
Loading…
Reference in New Issue
Block a user