ICU-1470 fixed a memory leak in readFile()

X-SVN-Rev: 6686
This commit is contained in:
Eric Mader 2001-11-08 00:29:20 +00:00
parent 59c248b2db
commit d5bb2fd69c

View file

@ -335,6 +335,8 @@ const UChar *ThaiWordbreakTest::readFile(char *fileName, int32_t &charCount)
fclose(f);
UnicodeString myText(bufferChars, fileSize, "UTF-8");
delete[] bufferChars;
charCount = myText.length();
buffer = new UChar[charCount];