mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-1470 fixed a memory leak in readFile()
X-SVN-Rev: 6686
This commit is contained in:
parent
59c248b2db
commit
d5bb2fd69c
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue