loolwsd/ChildProcessSession.cpp | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 2c3739bdc287c05e174d3be988b5c84da24bf5cf Author: Pranav Kant <pran...@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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits