diff options
Diffstat (limited to 'queen')
-rw-r--r-- | queen/music.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queen/music.cpp b/queen/music.cpp index 98054a33d6..19989e5048 100644 --- a/queen/music.cpp +++ b/queen/music.cpp @@ -42,7 +42,7 @@ static const byte mt32_to_gm[128] = { 47, 117, 127, 118, 118, 116, 115, 119, 115, 112, 55, 124, 123, 0, 14, 117 // 7x }; - MusicPlayer::MusicPlayer(MidiDriver *driver, byte *data, uint32 size) : _driver(driver), _isPlaying(false), _looping(false), _randomLoop(false), _masterVolume(192), _queuePos(0), _musicData(data), _musicDataSize(size), _passThrough(false) { + MusicPlayer::MusicPlayer(MidiDriver *driver, byte *data, uint32 size) : _driver(driver), _isPlaying(false), _looping(false), _randomLoop(false), _masterVolume(192), _queuePos(0), _musicData(data), _musicDataSize(size), _passThrough(false), _buf(0) { memset(_channel, 0, sizeof(_channel)); queueClear(); _lastSong = _currentSong = 0; @@ -59,6 +59,7 @@ static const byte mt32_to_gm[128] = { _parser->unloadMusic(); this->close(); delete _parser; + delete[] _buf; } void MusicPlayer::setVolume(int volume) { |