From 0fef7b32b28914413189a4aa444dfff15f3d2c5f Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sat, 27 May 2006 11:47:44 +0000 Subject: delete[] instead of delete svn-id: r22673 --- graphics/cursorman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp index 51d897052d..53a1bf1abb 100644 --- a/graphics/cursorman.cpp +++ b/graphics/cursorman.cpp @@ -89,7 +89,7 @@ void CursorManager::replaceCursor(const byte *buf, uint w, uint h, int hotspotX, uint size = w * h; if (cur->_size < size) { - delete cur->_data; + delete[] cur->_data; cur->_data = new byte[size]; cur->_size = size; } -- cgit v1.2.3