diff options
Diffstat (limited to 'code/client/snd_codec.c')
-rw-r--r-- | code/client/snd_codec.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |