diff options
Diffstat (limited to 'sal/rtl/string.cxx')
-rw-r--r-- | sal/rtl/string.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/string.cxx b/sal/rtl/string.cxx index c7a868cb9957..20a2cda499c4 100644 --- a/sal/rtl/string.cxx +++ b/sal/rtl/string.cxx @@ -274,7 +274,7 @@ bool rtl_impl_convertUStringToString(rtl_String ** pTarget, &nInfo, &nSrcChars ); if (bCheckErrors && (nInfo & RTL_UNICODETOTEXT_INFO_ERROR) != 0) { - rtl_freeMemory(pTemp); + rtl_freeString(pTemp); rtl_destroyUnicodeToTextConverter(hConverter); return false; } @@ -283,7 +283,7 @@ bool rtl_impl_convertUStringToString(rtl_String ** pTarget, break; /* Buffer not big enough, try again with enough space */ - rtl_freeMemory( pTemp ); + rtl_freeString( pTemp ); /* Try with the max. count of characters with additional overhead for replacing functionality */ @@ -298,7 +298,7 @@ bool rtl_impl_convertUStringToString(rtl_String ** pTarget, rtl_String* pTemp2 = rtl_string_ImplAlloc( nDestBytes ); OSL_ASSERT(pTemp2 != nullptr); rtl_str_ImplCopy( pTemp2->buffer, pTemp->buffer, nDestBytes ); - rtl_freeMemory( pTemp ); + rtl_freeString( pTemp ); pTemp = pTemp2; } else |