diff options
-rw-r--r-- | engines/access/access.cpp | 2 | ||||
-rw-r--r-- | engines/access/room.cpp | 2 | ||||
-rw-r--r-- | engines/access/sound.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp index 080cd36032..7189ebb799 100644 --- a/engines/access/access.cpp +++ b/engines/access/access.cpp @@ -226,7 +226,7 @@ void AccessEngine::freeCells() { } void AccessEngine::freeInactiveData() { - delete[] _inactive; + delete _inactive; _inactive = nullptr; } diff --git a/engines/access/room.cpp b/engines/access/room.cpp index 0c60f7b818..0de6497422 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -143,7 +143,7 @@ void Room::doRoom() { void Room::clearRoom() { if (_vm->_sound->_music) { _vm->_sound->stopSong(); - delete[] _vm->_sound->_music; + delete _vm->_sound->_music; _vm->_sound->_music = nullptr; } diff --git a/engines/access/sound.cpp b/engines/access/sound.cpp index c032f6cfd2..bdf8c224e4 100644 --- a/engines/access/sound.cpp +++ b/engines/access/sound.cpp @@ -90,7 +90,7 @@ void SoundManager::freeSounds() { } void SoundManager::freeMusic() { - delete[] _music; + delete _music; _music = nullptr; } |