[Libreoffice-commits] core.git: i18npool/source
Caolán McNamara
caolanm at redhat.com
Wed Jun 5 09:46:11 PDT 2013
i18npool/source/breakiterator/xdictionary.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit baf8f02b009e62f44959be26ee33daeb032fae0d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jun 5 17:44:09 2013 +0100
mismatched new[]/delete
Change-Id: I0bfa3c090c436c0397ead80f2759ab7335f3aa0f
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx
index 72da09f..cf22d6c 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
More information about the Libreoffice-commits
mailing list