diff options
| author | Torbjörn Andersson | 2006-05-27 11:55:03 +0000 |
|---|---|---|
| committer | Torbjörn Andersson | 2006-05-27 11:55:03 +0000 |
| commit | c8d3f5a80fbe6a69b05a5f8e9bbfc38495b03c85 (patch) | |
| tree | 576c501f91f94f524810e6b88f690e02146fed84 /graphics | |
| parent | 0f10a11ba021ddc658148a052bc68778a49a28d0 (diff) | |
| download | scummvm-rg350-c8d3f5a80fbe6a69b05a5f8e9bbfc38495b03c85.tar.gz scummvm-rg350-c8d3f5a80fbe6a69b05a5f8e9bbfc38495b03c85.tar.bz2 scummvm-rg350-c8d3f5a80fbe6a69b05a5f8e9bbfc38495b03c85.zip | |
Should use delete[] instead of delete here, too. (I knew where the cursor
manager code was copied from. :-)
svn-id: r22675
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/paletteman.cpp | 2 |
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; } |
