From 87f793082020fa310879e4b5298fb7d8fae9004f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 28 Jun 2008 19:49:04 +0000 Subject: [PATCH] Operator new[] should go with delete[] svn path=/trunk/; revision=34168 --- rostests/tests/stretchblt/stretchblt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rostests/tests/stretchblt/stretchblt.cpp b/rostests/tests/stretchblt/stretchblt.cpp index fede8e21ee5..68b9b7a76bd 100644 --- a/rostests/tests/stretchblt/stretchblt.cpp +++ b/rostests/tests/stretchblt/stretchblt.cpp @@ -365,8 +365,8 @@ LRESULT CALLBACK MainWndProc(HWND HWnd, UINT Msg, WPARAM WParam, DeleteObject(SelectObject(HMemDC, HOldBmp)); DeleteDC(HMemDC); - if (bbits) - delete bbits; + if (bbits) + delete[] bbits; PostQuitMessage(0); return 0;