summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2009-11-06 10:56:40 +0000
committerCaolán McNamara <cmc@openoffice.org>2009-11-06 10:56:40 +0000
commit633f194aa52df3fa85458f70be7d33d35b9dbf01 (patch)
tree9e39c8faa59da449073907ebd63f43c955f3c52f /i18npool
parentc0f197f920974f3fdaf8278dad16dc5ecb994d52 (diff)
cmcfixes66: #i106673# fix memleak
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/textconversion/genconv_dict.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx
index 23a264603df9..3455cfecd3cc 100644
--- a/i18npool/source/textconversion/genconv_dict.cxx
+++ b/i18npool/source/textconversion/genconv_dict.cxx
@@ -357,8 +357,8 @@ void make_stc_word(FILE *sfp, FILE *cfp)
{
sal_Int32 count, i, length;
sal_Unicode STC_WordData[0x10000];
- Index *STC_WordEntry_S2T = (Index*) malloc(0x10000 * sizeof(Index));
- Index *STC_WordEntry_T2S = (Index*) malloc(0x10000 * sizeof(Index));
+ Index STC_WordEntry_S2T[0x10000];
+ Index STC_WordEntry_T2S[0x10000];
sal_Int32 count_S2T = 0, count_T2S = 0;
sal_Int32 line = 0, char_total = 0;
sal_Char Cstr[1024];
@@ -480,7 +480,5 @@ void make_stc_word(FILE *sfp, FILE *cfp)
fprintf (cfp, "\tconst sal_uInt16* getSTC_WordEntry_T2S() { return NULL; }\n");
fprintf (cfp, "\tconst sal_uInt16* getSTC_WordIndex_T2S(sal_Int32& count) { count = 0; return NULL; }\n");
}
- free(STC_WordEntry_S2T);
- free(STC_WordEntry_T2S);
}