From 0d2333019b693d730706d7a7708024f5db74f040 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 18 Nov 2007 01:06:46 +0000 Subject: * Fix bug where an extraneous render command can cause a crash when recording video * Make S_CodecUtilClose NULL the snd_stream_t pointer * Fix indentation in runtime SDL check code git-svn-id: svn://svn.icculus.org/quake3/trunk@1214 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/snd_codec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'code/client/snd_codec.c') diff --git a/code/client/snd_codec.c b/code/client/snd_codec.c index 52435c1..41456ce 100644 --- a/code/client/snd_codec.c +++ b/code/client/snd_codec.c @@ -226,8 +226,9 @@ snd_stream_t *S_CodecUtilOpen(const char *filename, snd_codec_t *codec) S_CodecUtilClose ================= */ -void S_CodecUtilClose(snd_stream_t *stream) +void S_CodecUtilClose(snd_stream_t **stream) { - FS_FCloseFile(stream->file); - Z_Free(stream); + FS_FCloseFile((*stream)->file); + Z_Free(*stream); + *stream = NULL; } -- cgit v1.2.3