summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-05 17:44:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-05 17:45:49 +0100
commitbaf8f02b009e62f44959be26ee33daeb032fae0d (patch)
tree9e3f3162c06b2184e8b4bc6346e2da0644cfc296
parent765a030767e2ca8cd4b6159587ccd232127b896b (diff)
mismatched new[]/delete
Change-Id: I0bfa3c090c436c0397ead80f2759ab7335f3aa0f
-rw-r--r--i18npool/source/breakiterator/xdictionary.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx
index 72da09f87629..cf22d6cbd3e4 100644
--- a/i18npool/source/breakiterator/xdictionary.cxx
+++ b/i18npool/source/breakiterator/xdictionary.cxx
@@ -281,8 +281,8 @@ WordBreakCache& xdictionary::getCache(const sal_Unicode *text, Boundary& wordBou
if (rCache.size == 0 || len > rCache.size) {
if (rCache.size != 0) {
- delete rCache.contents;
- delete rCache.wordboundary;
+ delete [] rCache.contents;
+ delete [] rCache.wordboundary;
rCache.size = len;
}
else