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:
@@ -239,7 +239,7 @@ Message::Draw(BView *view, int32 frame)
|
|||||||
strncpy(toDraw, message->String()+start, drawingLength);
|
strncpy(toDraw, message->String()+start, drawingLength);
|
||||||
toDraw[drawingLength] = 0;
|
toDraw[drawingLength] = 0;
|
||||||
offscreen.DrawString(toDraw, BPoint(x, y));
|
offscreen.DrawString(toDraw, BPoint(x, y));
|
||||||
delete toDraw;
|
delete[] toDraw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now draw the full message in a nice translucent box, but only
|
// Now draw the full message in a nice translucent box, but only
|
||||||
|
|||||||
Reference in New Issue
Block a user