Fixed last commit

This commit is contained in:
Lynix 2012-07-01 02:06:40 +02:00
parent 7ed9e16664
commit ee8a6fda3b
1 changed files with 1 additions and 3 deletions

View File

@ -270,10 +270,8 @@ void NzString::Clear(bool keepBuffer)
{
if (keepBuffer)
{
ReleaseString();
EnsureOwnership();
m_sharedString->size = 0;
m_sharedString->string = nullptr;
}
else
ReleaseString();