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:
parent
c1d9a877a4
commit
fc16834e55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user