diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-22 11:58:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-23 06:46:13 +0200 |
commit | b71e02dd5bfaaa490dc7f56eddf10c17681108b5 (patch) | |
tree | b406df81dd38fd967d3b900db6e034f1a15b50ee /svtools | |
parent | 8f98a7c4e5b1f0b249c026577805a378b8a533d5 (diff) |
dispose() methods should clear their smart pointers
especiall the ref-counted ones
Change-Id: Ib3bb029043b1b923010ef4a47bfc377e1f569da7
Reviewed-on: https://gerrit.libreoffice.org/76102
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index 974ee8edabab..65b7b7994b32 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -1423,6 +1423,7 @@ void UnoTreeListBoxImpl::dispose() { if( mxPeer.is() ) mxPeer->disposeControl(); + mxPeer.clear(); SvTreeListBox::dispose(); } |