aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRobert Špalek2009-10-26 22:04:03 +0000
committerRobert Špalek2009-10-26 22:04:03 +0000
commit46cb0be173ead8fbbc5394dd1cf3056d8902cff3 (patch)
tree1237f43b58e436492bf4541edab0bdab31ea8d1d /engines
parent23173ae2c7dfc4d0a86092c7c118f6852aedea4c (diff)
downloadscummvm-rg350-46cb0be173ead8fbbc5394dd1cf3056d8902cff3.tar.gz
scummvm-rg350-46cb0be173ead8fbbc5394dd1cf3056d8902cff3.tar.bz2
scummvm-rg350-46cb0be173ead8fbbc5394dd1cf3056d8902cff3.zip
fix free/delete
svn-id: r45422
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/music.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp
index 7917ad7304..62c9914844 100644
--- a/engines/draci/music.cpp
+++ b/engines/draci/music.cpp
@@ -55,7 +55,7 @@ MusicPlayer::~MusicPlayer() {
this->close();
_smfParser->setMidiDriver(NULL);
delete _smfParser;
- delete _midiMusicData;
+ delete[] _midiMusicData;
}
void MusicPlayer::setChannelVolume(int channel) {
@@ -176,7 +176,7 @@ void MusicPlayer::playSMF(int track, bool loop) {
return;
}
int midiMusicSize = musicFile.size();
- delete _midiMusicData;
+ delete[] _midiMusicData;
_midiMusicData = new byte[midiMusicSize];
musicFile.read(_midiMusicData, midiMusicSize);
musicFile.close();