From 3fad26e5dd6b04a521a96a618473ed08c12b9f9c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 May 2015 11:13:36 +0200 Subject: loplugin:vclwidgets Change-Id: I4292b8838b39dbf199da3cfa0f161bae1c75e9e4 --- vcl/source/control/slider.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vcl/source/control/slider.cxx') 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(); -- cgit