summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-02-25 13:00:53 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-02-25 13:00:53 +0000
commitfc60a90a6716994362b2e5548bb9be393feec2a1 (patch)
tree7727033be70b1fa5c6956a3db3f1e2d991466eff /src
parentc7d5670c3aa1e9f59b7bd80d5f559f35cff84fba (diff)
STR 1880: Fixed timer leak in Fl_Scrollbar
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Scrollbar.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_Scrollbar.cxx b/src/Fl_Scrollbar.cxx
index 22a05c84b..b2c50905f 100644
--- a/src/Fl_Scrollbar.cxx
+++ b/src/Fl_Scrollbar.cxx
@@ -265,6 +265,13 @@ Fl_Scrollbar::Fl_Scrollbar(int X, int Y, int W, int H, const char* L)
step(1);
}
+Fl_Scrollbar::~Fl_Scrollbar()
+{
+ if (pushed_)
+ Fl::remove_timeout(timeout_cb, this);
+}
+
+
//
// End of "$Id$".
//