diff options
author | Johannes Schickel | 2009-10-07 17:46:17 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-10-07 17:46:17 +0000 |
commit | 0e3b634ecbd7210af60f0ca112bd7e5e9e4711a8 (patch) | |
tree | 230a4e16f6e37deca2a44f1ab15f845801ccfd31 /engines/sci/gui | |
parent | 6e17b025a5aace9de4d189e6c7545eb0edef4f63 (diff) | |
download | scummvm-rg350-0e3b634ecbd7210af60f0ca112bd7e5e9e4711a8.tar.gz scummvm-rg350-0e3b634ecbd7210af60f0ca112bd7e5e9e4711a8.tar.bz2 scummvm-rg350-0e3b634ecbd7210af60f0ca112bd7e5e9e4711a8.zip |
Fix mismatching new[]/delete use, by replacing delete with delete[].
svn-id: r44741
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui_view.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gui/gui_view.cpp b/engines/sci/gui/gui_view.cpp index 83f63fb8a8..79b5ca1456 100644 --- a/engines/sci/gui/gui_view.cpp +++ b/engines/sci/gui/gui_view.cpp @@ -44,11 +44,11 @@ SciGuiView::~SciGuiView() { for (uint16 loopNum = 0; loopNum < _loopCount; loopNum++) { // and through the cells of each loop for (uint16 celNum = 0; celNum < _loop[loopNum].celCount; celNum++) { - delete _loop[loopNum].cel[celNum].rawBitmap; + delete[] _loop[loopNum].cel[celNum].rawBitmap; } - delete _loop[loopNum].cel; + delete[] _loop[loopNum].cel; } - delete _loop; + delete[] _loop; } static const byte EGAMappingDefault[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; |