diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-10 13:36:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-10 13:36:19 +0100 |
commit | c88c187124a428009d347a1064507221bb4148bc (patch) | |
tree | 71f46d0616c8ad221acd7b8c668e2e7ea40ab833 /framework | |
parent | d52a2c5b3c62c3d73891fbb5b86b6e02d68b2c18 (diff) |
Unbreak reference upon disposing notification
Change-Id: Ifd9d4fe187c8259db5816f9cdb50cfeae50c8057
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/sessionlistener.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx index 05c086d74792..8ba90ab5e2bb 100644 --- a/framework/source/services/sessionlistener.cxx +++ b/framework/source/services/sessionlistener.cxx @@ -231,9 +231,12 @@ void SessionListener::QuitSessionQuietly() } } -void SAL_CALL SessionListener::disposing(const css::lang::EventObject&) throw (RuntimeException, std::exception) +void SAL_CALL SessionListener::disposing(const css::lang::EventObject& Source) throw (RuntimeException, std::exception) { SAL_INFO("fwk.session", "SessionListener::disposing"); + if (Source.Source == m_rSessionManager) { + m_rSessionManager.clear(); + } } void SAL_CALL SessionListener::initialize(const Sequence< Any >& args) |