summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-01 11:22:55 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-01 11:22:55 +0200
commit0f559f5bcfc057006460929e0391035a94fbeff1 (patch)
treead14863806fa3242b2da6ff1f7d8076ef4ac770d
parentfc6bf7220ae20d3f1b6329751abef036d8db1325 (diff)
downloadfpGUI-0f559f5bcfc057006460929e0391035a94fbeff1.tar.xz
Fixed memory leak in TfpgGroupBox. Never freed the used font.
-rw-r--r--src/gui/fpg_panel.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/fpg_panel.pas b/src/gui/fpg_panel.pas
index bbdea641..2593009d 100644
--- a/src/gui/fpg_panel.pas
+++ b/src/gui/fpg_panel.pas
@@ -144,6 +144,7 @@ type
procedure HandlePaint; override;
public
constructor Create(AOwner: TComponent); override;
+ destructor Destroy; override;
function GetClientRect: TfpgRect; override;
property Font: TfpgFont read FFont;
published
@@ -756,5 +757,11 @@ begin
FMargin := 2;
end;
+destructor TfpgGroupBox.Destroy;
+begin
+ FFont.Free;
+ inherited Destroy;
+end;
+
end.