aboutsummaryrefslogtreecommitdiff
path: root/graphics/cursorman.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2006-05-27 11:47:44 +0000
committerWillem Jan Palenstijn2006-05-27 11:47:44 +0000
commit0fef7b32b28914413189a4aa444dfff15f3d2c5f (patch)
treecf76d4e2a0d770d0b485022a92d4040ad9e3fac6 /graphics/cursorman.cpp
parent923101abcbad36dbfc676008cf7193efa60caaa7 (diff)
downloadscummvm-rg350-0fef7b32b28914413189a4aa444dfff15f3d2c5f.tar.gz
scummvm-rg350-0fef7b32b28914413189a4aa444dfff15f3d2c5f.tar.bz2
scummvm-rg350-0fef7b32b28914413189a4aa444dfff15f3d2c5f.zip
delete[] instead of delete
svn-id: r22673
Diffstat (limited to 'graphics/cursorman.cpp')
-rw-r--r--graphics/cursorman.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}