diff options
Diffstat (limited to 'toolkit/source/helper/unowrapper.cxx')
-rw-r--r-- | toolkit/source/helper/unowrapper.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/toolkit/source/helper/unowrapper.cxx b/toolkit/source/helper/unowrapper.cxx index f0e2c2dc0e66..f838fa57694b 100644 --- a/toolkit/source/helper/unowrapper.cxx +++ b/toolkit/source/helper/unowrapper.cxx @@ -288,11 +288,7 @@ void UnoWrapper::WindowDestroyed( vcl::Window* pWindow ) VclPtr< vcl::Window > pNextTopChild = pTopWindowChild->GetWindow( GetWindowType::NextTopWindowSibling ); - //the window still could be on the stack, so we have to - // use lazy delete ( it will automatically - // disconnect from the currently destroyed parent window ) - pTopWindowChild->doLazyDelete(); - + pTopWindowChild.disposeAndClear(); pTopWindowChild = pNextTopChild; } } |