diff options
author | tron <tron@openttd.org> | 2005-03-12 09:40:29 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-12 09:40:29 +0000 |
commit | e1f31cd0314ddcbbcf1340060c635a7750412379 (patch) | |
tree | 59e92ffa7a1819727129646d328aaf1af568a3b1 /mixer.c | |
parent | b40a2fcd0d7c80ce2871b508363f10ab8ab75802 (diff) | |
download | openttd-e1f31cd0314ddcbbcf1340060c635a7750412379.tar.xz |
(svn r2001) Resolve a race condition which could lead to dropped a sound and a memory leak
Diffstat (limited to 'mixer.c')
-rw-r--r-- | mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,8 +73,8 @@ static void mix_int8_to_int16(MixerChannel *sc, int16 *buffer, uint samples) static void MxCloseChannel(MixerChannel *mc) { if (mc->flags & MX_AUTOFREE) free(mc->memory); - mc->memory = NULL; mc->active = false; + mc->memory = NULL; } void MxMixSamples(Mixer *mx, void *buffer, uint samples) |