framework/source/services/sessionlistener.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit c88c187124a428009d347a1064507221bb4148bc
Author: Stephan Bergmann <sberg...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to