aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/paletteman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/paletteman.cpp b/graphics/paletteman.cpp
index ffd9d3fef2..7950095aa6 100644
--- a/graphics/paletteman.cpp
+++ b/graphics/paletteman.cpp
@@ -87,7 +87,7 @@ void PaletteManager::replaceCursorPalette(const byte *colors, uint start, uint n
if (pal->_size < size) {
// Could not re-use the old buffer. Create a new one.
- delete pal->_data;
+ delete[] pal->_data;
pal->_data = new byte[size];
pal->_size = size;
}