summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/slider.hxx3
-rw-r--r--vcl/source/control/slider.cxx11
2 files changed, 13 insertions, 1 deletions
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index 203554f6341c..8e609cd7ecaa 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -81,7 +81,8 @@ private:
public:
Slider( vcl::Window* pParent, WinBits nStyle = WB_HORZ );
-
+ virtual ~Slider();
+ virtual void dispose() SAL_OVERRIDE;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE;
virtual void Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE;
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 6fe7110ef5c8..4c5e8e6387c3 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -82,6 +82,17 @@ Slider::Slider( vcl::Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
+Slider::~Slider()
+{
+ disposeOnce();
+}
+
+void Slider::dispose()
+{
+ mpLinkedField.clear();
+ Control::dispose();
+}
+
void Slider::ImplInitSettings()
{
vcl::Window* pParent = GetParent();