diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index 6142b15140a3..7d1a70a23515 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -328,12 +328,12 @@ void ImplInitWindowEvent( css::awt::WindowEvent& rEvent, vcl::Window const * pWi VCLXWindow::VCLXWindow( bool _bWithDefaultProps ) :mpImpl( nullptr ) { - mpImpl = new VCLXWindowImpl( *this, _bWithDefaultProps ); + mpImpl.reset( new VCLXWindowImpl( *this, _bWithDefaultProps ) ); } VCLXWindow::~VCLXWindow() { - delete mpImpl; + mpImpl.reset(); if ( GetWindow() ) { |