diff options
-rw-r--r-- | engines/made/music.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/made/music.cpp b/engines/made/music.cpp index b9a0154093..1b51fb3b80 100644 --- a/engines/made/music.cpp +++ b/engines/made/music.cpp @@ -141,9 +141,6 @@ void MusicPlayer::onTimer(void *refCon) { } void MusicPlayer::play(XmidiResource *midiResource, MusicFlags flags) { - byte *resourceData; - size_t resourceSize; - if (_isPlaying) return; @@ -153,11 +150,7 @@ void MusicPlayer::play(XmidiResource *midiResource, MusicFlags flags) { _isGM = true; - resourceSize = midiResource->getSize(); - resourceData = new byte[resourceSize]; - memcpy(resourceData, midiResource->getData(), resourceSize); - - if (_xmidiParser->loadMusic(resourceData, resourceSize)) { + if (_xmidiParser->loadMusic(midiResource->getData(), midiResource->getSize())) { MidiParser *parser = _xmidiParser; parser->setTrack(0); parser->setMidiDriver(this); |