[Libreoffice-commits] core.git: framework/source
Stephan Bergmann
sbergman at redhat.com
Thu Dec 10 04:36:45 PST 2015
framework/source/services/sessionlistener.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit c88c187124a428009d347a1064507221bb4148bc
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Dec 10 13:36:19 2015 +0100
Unbreak reference upon disposing notification
Change-Id: Ifd9d4fe187c8259db5816f9cdb50cfeae50c8057
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx
index 05c086d..8ba90ab 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)
More information about the Libreoffice-commits
mailing list