From 1f59e2cec3f4a22d612ca6cff06930c3d4bb77ca Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Jan 2015 11:38:12 +0200 Subject: vcl: window destructors calling dispose Extend plugin to warn on any vcl::Window subclass that has a destructor and does not implement dispose. Apply this provision to the necessary classes in vcl/ Change-Id: I05189f8df02568131d59fc44fea904c87733c8c7 --- vcl/source/window/splitwin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vcl/source/window/splitwin.cxx') diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 86db81283a4f..9f63ae3493db 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1346,10 +1346,16 @@ SplitWindow::SplitWindow( vcl::Window* pParent, WinBits nStyle ) : } SplitWindow::~SplitWindow() +{ + dispose(); +} + +void SplitWindow::dispose() { // delete Sets ImplDeleteSet( mpMainSet ); mpMainSet = NULL; //NULL for base-class callbacks during dtoring + DockingWindow::dispose(); } void SplitWindow::ImplSetWindowSize( long nDelta ) -- cgit v1.2.3