diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-12 14:35:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-12 17:47:08 +0200 |
commit | 5d5e0da5c314773129d8153363e2892fc359a744 (patch) | |
tree | 3b3e8bd8ce52666d784b4c9920244c9d4e584a85 /toolkit | |
parent | coverity#1440239 Uncaught exception (diff) | |
download | core-5d5e0da5c314773129d8153363e2892fc359a744.tar.gz core-5d5e0da5c314773129d8153363e2892fc359a744.zip |
tdf#118572 dispose instead of LazyDeletor
Change-Id: Ib52a1d6ffee0354cc7749f2535a05821d73149c5
Reviewed-on: https://gerrit.libreoffice.org/61716
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'toolkit')
-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; } } |