Fixes freeing music data broken in r2901

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3281 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-11-05 20:58:59 +00:00
parent 55a0791227
commit 980693268d
+2 -3
View File
@@ -140,8 +140,7 @@ snd_StopSpeech (void)
BOOLEAN BOOLEAN
DestroyMusic (MUSIC_REF MusicRef) DestroyMusic (MUSIC_REF MusicRef)
{ {
FreeMusicData (MusicRef); return _ReleaseMusicData (MusicRef);
return (TRUE);
} }
void void
@@ -227,7 +226,7 @@ _ReleaseMusicData (void *data)
SoundDecoder_Free (decoder); SoundDecoder_Free (decoder);
} }
TFB_DestroySoundSample (sample); TFB_DestroySoundSample (sample);
HFree (pmus); FreeMusicData (data);
return (TRUE); return (TRUE);
} }