diff options
author | Travis Howell | 2006-01-06 01:25:31 +0000 |
---|---|---|
committer | Travis Howell | 2006-01-06 01:25:31 +0000 |
commit | 2ff05b9b4e6e9253801604db0320e2d514b690ba (patch) | |
tree | a1b5999f3b1f16d26ff78937062b774486f4e5a3 /scumm | |
parent | d555d1bd4a69cfbdc4946e8eb0af98974c772f23 (diff) | |
download | scummvm-rg350-2ff05b9b4e6e9253801604db0320e2d514b690ba.tar.gz scummvm-rg350-2ff05b9b4e6e9253801604db0320e2d514b690ba.tar.bz2 scummvm-rg350-2ff05b9b4e6e9253801604db0320e2d514b690ba.zip |
No longer required.
svn-id: r19921
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sound_he.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scumm/sound_he.cpp b/scumm/sound_he.cpp index 4edf5e874f..8c2464300a 100644 --- a/scumm/sound_he.cpp +++ b/scumm/sound_he.cpp @@ -301,7 +301,6 @@ void Sound::processSoundOpcodes(int sound, byte *codePtr, int *soundVars) { void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) { debug(0,"playHESound: soundID %d heOffset %d heChannel %d heFlags %d", soundID, heOffset, heChannel, heFlags); - byte *mallocedPtr = NULL; byte *ptr, *spoolPtr; char *sound; int size = -1; @@ -358,9 +357,6 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) { _vm->_mixer->playRaw(&_heSoundChannels[heChannel], spoolPtr, size, 11025, flags, soundID); return; } - - // This pointer will be freed at the end of the function - mallocedPtr = spoolPtr; } if (soundID > _vm->_numSounds) { @@ -474,8 +470,6 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) { _vm->_musicEngine->startSound(soundID); } } - - free(mallocedPtr); } void Sound::startHETalkSound(uint32 offset) { |