changeset 409:0dbf37be0a5a

Valgrind cleanups.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 29 Jul 2002 22:36:21 +0000
parents 3da217bd0e48
children ede9429ea6f5
files playsound/playsound.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/playsound/playsound.c	Mon Jul 29 07:50:29 2002 +0000
+++ b/playsound/playsound.c	Mon Jul 29 22:36:21 2002 +0000
@@ -734,7 +734,6 @@
 {
     Sound_AudioInfo sound_desired;
     SDL_AudioSpec sdl_desired;
-    SDL_AudioSpec sdl_actual;
     Uint32 audio_buffersize;
     Uint32 decode_buffersize;
     Sound_Sample *sample;
@@ -837,6 +836,7 @@
                 free((void *) global_state.seek_list);
 
             memset((void *) &global_state, '\0', sizeof (global_state));
+            memset(&sdl_desired, '\0', sizeof (SDL_AudioSpec));
             global_state.volume = 1.0;
             global_state.bytes_before_next_seek = -1;
             audio_buffersize = DEFAULT_AUDIOBUF;