No longer required.

svn-id: r19921
This commit is contained in:
Travis Howell committed 2006-01-06 01:25:31 +00:00
1 parent d555d1bd4a
commit 2ff05b9b4e
1 file changed
-6
-6
View File
@@ -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) {