CID 1464: Delete an array with delete[]
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37963 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3d8f229273
commit
5e819d74dd
@ -239,7 +239,7 @@ Message::Draw(BView *view, int32 frame)
|
||||
strncpy(toDraw, message->String()+start, drawingLength);
|
||||
toDraw[drawingLength] = 0;
|
||||
offscreen.DrawString(toDraw, BPoint(x, y));
|
||||
delete toDraw;
|
||||
delete[] toDraw;
|
||||
}
|
||||
|
||||
// Now draw the full message in a nice translucent box, but only
|
||||
|
Loading…
Reference in New Issue
Block a user