From kde-commits Tue Aug 02 09:16:39 2011 From: "Dr. Robert Marmorstein" Date: Tue, 02 Aug 2011 09:16:39 +0000 To: kde-commits Subject: [koffice] filters/kword/msword-odf/wv2/src: Fix a likely memory leak. Message-Id: <20110802091639.7D909A60C8 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131227666515676 Git commit 59c7b2e870bed74fa74d01ac5b9e89741debabad by Dr. Robert Marmorstein. Committed on 01/08/2011 at 17:47. Pushed by robertm into branch 'master'. Fix a likely memory leak. Unfortunately, I don't have a way to test this. We may need to revert if it causes crashes in the filter, but I think it's probably correct. M +3 -0 filters/kword/msword-odf/wv2/src/ustring.h http://commits.kde.org/koffice/59c7b2e870bed74fa74d01ac5b9e89741debabad diff --git a/filters/kword/msword-odf/wv2/src/ustring.h b/filters/kword/msword-odf/wv2/src/ustring.h index 183710d..034c10e 100644 --- a/filters/kword/msword-odf/wv2/src/ustring.h +++ b/filters/kword/msword-odf/wv2/src/ustring.h @@ -202,6 +202,9 @@ namespace wvWare { int len; int rc; static Rep null; + ~Rep () { + delete[] dat; + } }; public: