diff --git a/libutils/String16.cpp b/libutils/String16.cpp index 5c3cf3261..e2a8c59a0 100644 --- a/libutils/String16.cpp +++ b/libutils/String16.cpp @@ -346,7 +346,6 @@ void* String16::edit() { if (isStaticString()) { buf = static_cast(alloc((size() + 1) * sizeof(char16_t))); if (buf) { - buf->acquire(); memcpy(buf->data(), mString, (size() + 1) * sizeof(char16_t)); } } else { @@ -365,7 +364,6 @@ void* String16::editResize(size_t newSize) { } buf = static_cast(alloc(newSize)); if (buf) { - buf->acquire(); memcpy(buf->data(), mString, copySize); } } else {