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:
@@ -4385,9 +4385,10 @@ BTextView::_GetProperty(BMessage *specifier, int32 form, const char *property, B
|
|||||||
|
|
||||||
reply->what = B_REPLY;
|
reply->what = B_REPLY;
|
||||||
reply->AddString("result", buffer);
|
reply->AddString("result", buffer);
|
||||||
delete buffer;
|
|
||||||
reply->AddInt32("error", B_OK);
|
reply->AddInt32("error", B_OK);
|
||||||
|
|
||||||
|
delete[] buffer;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (strcmp(property, "text_run_array") == 0)
|
} else if (strcmp(property, "text_run_array") == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user