Author: matt
Date: 2008-02-25 05:00:53 -0800 (Mon, 25 Feb 2008)
New Revision: 6042
Log:
STR 1880: Fixed timer leak in Fl_Scrollbar

Modified:
   branches/branch-1.1/CHANGES
   branches/branch-1.1/FL/Fl_Scrollbar.H
   branches/branch-1.1/src/Fl_Scrollbar.cxx

Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2008-02-22 23:00:05 UTC (rev 6041)
+++ branches/branch-1.1/CHANGES 2008-02-25 13:00:53 UTC (rev 6042)
@@ -6,6 +6,7 @@
          STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
          STR #1796, STR #1815, STR #1726, STR #1753, STR #1855,
          STR #1862, STR #1867, STR #1874)
+       - Fixed possible timer leak in Scrollbar (STR #1880)
        - Added documentation about the potential limitations
          of Fl::grab on newer operating systems (STR #1747)
        - Fixed lockout when mixing popups and alerts

Modified: branches/branch-1.1/FL/Fl_Scrollbar.H
===================================================================
--- branches/branch-1.1/FL/Fl_Scrollbar.H       2008-02-22 23:00:05 UTC (rev 
6041)
+++ branches/branch-1.1/FL/Fl_Scrollbar.H       2008-02-25 13:00:53 UTC (rev 
6042)
@@ -42,6 +42,7 @@
 public:
 
   Fl_Scrollbar(int x,int y,int w,int h, const char *l = 0);
+  ~Fl_Scrollbar();
   int handle(int);
 
   int value() {return int(Fl_Slider::value());}

Modified: branches/branch-1.1/src/Fl_Scrollbar.cxx
===================================================================
--- branches/branch-1.1/src/Fl_Scrollbar.cxx    2008-02-22 23:00:05 UTC (rev 
6041)
+++ branches/branch-1.1/src/Fl_Scrollbar.cxx    2008-02-25 13:00:53 UTC (rev 
6042)
@@ -265,6 +265,13 @@
   step(1);
 }
 
+Fl_Scrollbar::~Fl_Scrollbar()
+{
+  if (pushed_)
+    Fl::remove_timeout(timeout_cb, this);
+}
+
+
 //
 // End of "$Id$".
 //

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to