[Libreoffice-commits] online.git: loolwsd/ChildProcessSession.cpp
Pranav Kant
pranavk at collabora.com
Sat Mar 12 19:40:29 UTC 2016
loolwsd/ChildProcessSession.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 2c3739bdc287c05e174d3be988b5c84da24bf5cf
Author: Pranav Kant <pranavk at collabora.com>
Date: Sat Mar 12 22:47:34 2016 +0530
loolwsd: Fix a memory leak
Change-Id: I9a48c2846f74cb7cee8430dd4e72ba0580a7e7f2
diff --git a/loolwsd/ChildProcessSession.cpp b/loolwsd/ChildProcessSession.cpp
index 468eaa3..38d8ba9 100644
--- a/loolwsd/ChildProcessSession.cpp
+++ b/loolwsd/ChildProcessSession.cpp
@@ -947,6 +947,8 @@ bool ChildProcessSession::getTextSelection(const char* /*buffer*/, int /*length*
char *textSelection = _loKitDocument->pClass->getTextSelection(_loKitDocument, mimeType.c_str(), nullptr);
sendTextFrame("textselectioncontent: " + std::string(textSelection));
+
+ free(textSelection);
return true;
}
More information about the Libreoffice-commits
mailing list