loolwsd/ChildProcessSession.cpp |    1 +
 loolwsd/LOOLKit.cpp             |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 5986ce25ee68b460c477602cf4c014d121bb54c4
Author: Henry Castro <[email protected]>
Date:   Tue Dec 29 17:30:11 2015 -0400

    loolwsd: log::debug destroy view
    
    after debugging with multiple views, it is trhown uncaught exception
    while destroying lokit document.
    
    "terminate called after throwing an instance of 
'com::sun::star::lang::DisposedException'"

diff --git a/loolwsd/ChildProcessSession.cpp b/loolwsd/ChildProcessSession.cpp
index 4fd6351..e8d4b49 100644
--- a/loolwsd/ChildProcessSession.cpp
+++ b/loolwsd/ChildProcessSession.cpp
@@ -63,6 +63,7 @@ ChildProcessSession::~ChildProcessSession()
     if (_loKitDocument != nullptr)
     {
         _loKitDocument->pClass->destroyView(_loKitDocument, _viewId);
+        Log::debug("Destroy view [" + getName() + "]-> [" + 
std::to_string(_viewId) + "]");
     }
 
     if (LIBREOFFICEKIT_HAS(_loKit, registerCallback))
diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp
index 8b5e375..8ab1597 100644
--- a/loolwsd/LOOLKit.cpp
+++ b/loolwsd/LOOLKit.cpp
@@ -740,6 +740,7 @@ void run_lok_main(const std::string &loSubPath, const 
std::string& childId, cons
     // Destroy all connections and views.
     _connections.clear();
 
+    // TODO. check what is happening when destroying lokit document
     // Destroy the document.
     if (loKitDocument != nullptr)
     {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to