mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0033423: Coding - Memory leak with locale conversion
use of stack allocated temp string instead of dynamic one
This commit is contained in:
parent
b828814131
commit
dc997b884b
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user