buffer is an array, so use delete[]. CID 130

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27439 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-12 07:34:37 +00:00
parent c1d9a877a4
commit fc16834e55

View File

@ -4385,9 +4385,10 @@ BTextView::_GetProperty(BMessage *specifier, int32 form, const char *property, B
reply->what = B_REPLY;
reply->AddString("result", buffer);
delete buffer;
reply->AddInt32("error", B_OK);
delete[] buffer;
return true;
} else if (strcmp(property, "text_run_array") == 0)
return false;