We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 492d4c0 commit dbabdb7Copy full SHA for dbabdb7
1 file changed
libfoundation/src/foundation-text.cpp
@@ -309,7 +309,7 @@ codepoint_t MCTextFilter_NormalizeNFC::GetNextCodepoint()
309
MCMemoryCopy(m_State, t_norm, t_norm_length * sizeof(unichar_t));
310
m_StateLength = t_norm_length;
311
m_ReadIndex = 0;
312
- delete[] t_norm;
+ free (t_norm);
313
314
// All done
315
if (m_State[0] > 0xD800 && m_State[0] < 0xDBFF)
@@ -397,7 +397,7 @@ codepoint_t MCTextFilter_NormalizeNFC::GetNextCodepointReverse()
397
m_State[kMCTextFilterMaxNormLength - t_norm_length--] = t_norm[i++];
398
m_StateLength = i;
399
400
401
402
403
if (m_StateLength > 1 && m_State[kMCTextFilterMaxNormLength - 2] > 0xD800 && m_State[kMCTextFilterMaxNormLength - 2] < 0xDBFF)
0 commit comments