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:
Jérôme Duval 2010-08-07 23:49:49 +00:00
parent 3d8f229273
commit 5e819d74dd

View File

@ -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