summaryrefslogtreecommitdiff
path: root/svtools/source/hatchwindow/documentcloser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/hatchwindow/documentcloser.cxx')
-rw-r--r--svtools/source/hatchwindow/documentcloser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/hatchwindow/documentcloser.cxx b/svtools/source/hatchwindow/documentcloser.cxx
index 7a20d452590e..aafcd7fa437b 100644
--- a/svtools/source/hatchwindow/documentcloser.cxx
+++ b/svtools/source/hatchwindow/documentcloser.cxx
@@ -118,7 +118,7 @@ IMPL_STATIC_LINK( MainThreadFrameCloserRequest, worker, void*, p, void )
// reparent the window
xWinPeer->setProperty( "PluginParent", uno::makeAny( (sal_Int64) 0 ) );
- vcl::Window* pWindow = VCLUnoHelper::GetWindow( xWindow );
+ VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( xWindow );
if ( pWindow )
Dialog::EndAllDialogs( pWindow );
}