summaryrefslogtreecommitdiff
path: root/vcl/source/window/syswin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/syswin.cxx')
-rw-r--r--vcl/source/window/syswin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 6656f122ecd3..8d7460c4f9cf 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -101,8 +101,7 @@ SystemWindow::~SystemWindow()
void SystemWindow::dispose()
{
maLayoutIdle.Stop();
- delete mpImplData;
- mpImplData = nullptr;
+ mpImplData.reset();
// Hack to make sure code called from base ~Window does not interpret this
// as a SystemWindow (which it no longer is by then):