summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-22 11:58:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-23 06:46:13 +0200
commitb71e02dd5bfaaa490dc7f56eddf10c17681108b5 (patch)
treeb406df81dd38fd967d3b900db6e034f1a15b50ee /ucb
parent8f98a7c4e5b1f0b249c026577805a378b8a533d5 (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 'ucb')
-rw-r--r--ucb/source/ucp/tdoc/tdoc_stgelems.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.cxx b/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
index b80db98d9554..57052d55433c 100644
--- a/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_stgelems.cxx
@@ -205,6 +205,7 @@ uno::Sequence< sal_Int8 > SAL_CALL Storage::getImplementationId()
void SAL_CALL Storage::dispose()
{
m_xWrappedStorage->dispose();
+ m_xWrappedStorage.clear();
}