[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp

Henry Castro hcastro at collabora.com
Thu Dec 3 13:43:11 PST 2015


 loolwsd/LOOLWSD.cpp |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9933ef86758a06d75997b4550413b828f62e0cb1
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Dec 3 17:41:12 2015 -0400

    loolwsd: destroy lokit document when a child dies

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 0e0cc70..4bfb097 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -984,6 +984,10 @@ void LOOLWSD::componentMain()
         queue.put("eof");
         queueHandlerThread.join();
 
+        // Destroy lokit document
+        if (session->_loKitDocument)
+            session->_loKitDocument->pClass->destroy(session->_loKitDocument);
+
         // Destroy LibreOfficeKit
         loKit->pClass->destroy(loKit);
     }


More information about the Libreoffice-commits mailing list