@@ -135,11 +135,11 @@ size_t j = 0; if (length > UINT32_MAX) @throw [OFOutOfRangeException exception]; - UTF16 = of_malloc(length, sizeof(of_char16_t)); + UTF16 = of_alloc(length, sizeof(of_char16_t)); @try { DWORD UTF16Len; OFMutableData *rest = nil; size_t i = 0; @@ -362,11 +362,11 @@ _incompleteUTF8SurrogateLen = 0; i += toCopy; } - tmp = of_malloc(length * 2, sizeof(of_char16_t)); + tmp = of_alloc(length * 2, sizeof(of_char16_t)); @try { DWORD bytesWritten; while (i < length) { of_unichar_t c;