mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
0033423: Coding - Memory leak with locale conversion
use of stack allocated temp string instead of dynamic one
This commit is contained in:
@@ -309,8 +309,7 @@ Standard_Boolean Resource_Unicode::ConvertBig5ToUnicode(const Standard_CString f
|
||||
}
|
||||
else
|
||||
{
|
||||
Standard_Utf32Char* aChar32 = new Standard_Utf32Char[1];
|
||||
aChar32[0] = uni;
|
||||
Standard_Utf32Char aChar32[] = {uni};
|
||||
NCollection_Utf32String aStr32(aChar32);
|
||||
NCollection_Utf16String aStr16 = aStr32.ToUtf16();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user