aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}