Skip to content

Commit

Permalink
ACCESS: Fix incorrect use of delete[] on Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 28, 2014
1 parent c0a7852 commit 3592389
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/access/access.cpp
Expand Up @@ -226,7 +226,7 @@ void AccessEngine::freeCells() {
}

void AccessEngine::freeInactiveData() {
delete[] _inactive;
delete _inactive;
_inactive = nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion engines/access/room.cpp
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion engines/access/sound.cpp
Expand Up @@ -90,7 +90,7 @@ void SoundManager::freeSounds() {
}

void SoundManager::freeMusic() {
delete[] _music;
delete _music;
_music = nullptr;
}

Expand Down

0 comments on commit 3592389

Please sign in to comment.