diff --git a/widgets/scrollbar.cpp b/widgets/scrollbar.cpp index f9178a944..e359d87da 100644 --- a/widgets/scrollbar.cpp +++ b/widgets/scrollbar.cpp @@ -46,6 +46,7 @@ ScrollBar::~ScrollBar() { widget()->setStyle(0); delete d->style; + delete d; } void ScrollBar::setRange(int min, int max)