loolwsd/LOOLKit.cpp | 1 + 1 file changed, 1 insertion(+) New commits: commit 0c1e284c920d0e8e35152f7488275470bf5be6cb Author: Henry Castro <hcas...@collabora.com> Date: Tue Dec 29 00:23:18 2015 -0400
loolwsd: release lokit after destroy it In order to avoid: Error: "double free or corruption (fasttop)" lokit cannot be deleted, instead it is used loKit->pClass->destroy diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp index f3b25a0..d3d7664 100644 --- a/loolwsd/LOOLKit.cpp +++ b/loolwsd/LOOLKit.cpp @@ -739,6 +739,7 @@ void run_lok_main(const std::string &loSubPath, const std::string& childId, cons // Destroy LibreOfficeKit loKit->pClass->destroy(loKit.get()); + loKit.release(); Log::debug("Thread [" + thread_name + "] finished."); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits