[Libreoffice-commits] online.git: loolwsd/LOOLKit.cpp
Henry Castro
hcastro at collabora.com
Mon Dec 28 20:25:14 PST 2015
loolwsd/LOOLKit.cpp | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 0c1e284c920d0e8e35152f7488275470bf5be6cb
Author: Henry Castro <hcastro at 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.");
}
More information about the Libreoffice-commits
mailing list