diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/ref/ref.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/source/ref/ref.cxx b/tools/source/ref/ref.cxx index 283776dd4cc3..dbb2122529e1 100644 --- a/tools/source/ref/ref.cxx +++ b/tools/source/ref/ref.cxx @@ -18,9 +18,16 @@ */ #include <tools/ref.hxx> +#include <tools/weakbase.hxx> SvRefBase::~SvRefBase() COVERITY_NOEXCEPT_FALSE { } +tools::WeakBase::~WeakBase() +{ + if( mpWeakConnection.is() ) + mpWeakConnection->mpReference = nullptr; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |