[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [koffice] filters/kword/msword-odf/wv2/src: Fix a likely memory leak.
From: "Dr. Robert Marmorstein" <robert () narnia ! homeunix ! com>
Date: 2011-08-02 9:16:39
Message-ID: 20110802091639.7D909A60C8 () git ! kde ! org
[Download RAW message or body]
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:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic