diff options
author | Hofmann Johannes <Johannes.Hofmann@gmx.de> | 2009-03-02 14:31:23 -0300 |
---|---|---|
committer | Hofmann Johannes <Johannes.Hofmann@gmx.de> | 2009-03-02 14:31:23 -0300 |
commit | d161eb342f35c48e005013248adac18196485881 (patch) | |
tree | a82097aee36d34f0de04ceffb51269a1e8571641 /src | |
parent | 99b5ad0ba36c500a563a2ffb635264ea0a2f83d9 (diff) |
Fixed a minor memory leak with CustShrinkTabPager()
Diffstat (limited to 'src')
-rw-r--r-- | src/uicmd.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index eb90f64f..e9774c77 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -225,7 +225,10 @@ class CustTabGroup : public fltk::TabGroup { public: CustTabGroup (int x, int y, int ww, int wh, const char *lbl=0) : TabGroup(x,y,ww,wh,lbl) { - this->pager(new CustShrinkTabPager()); + // The parameter pager is cloned, so free it. + CustShrinkTabPager *cp = new CustShrinkTabPager(); + this->pager(cp); + delete cp; toolTip = new Tooltip; tooltipEnabled = false; buttonPushed = false; |