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;