* fix memleak in fpcanvas. Patch by wp, mantis #24427 attempt two

git-svn-id: trunk@24555 -
This commit is contained in:
marco 2013-05-23 10:01:46 +00:00
parent abeb2a3aaa
commit 80b52b2a6a

View File

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