summaryrefslogtreecommitdiff
path: root/src/client/snd_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/snd_codec.c')
-rw-r--r--src/client/snd_codec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/snd_codec.c b/src/client/snd_codec.c
index 0f947551..1b680f87 100644
--- a/src/client/snd_codec.c
+++ b/src/client/snd_codec.c
@@ -227,8 +227,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;
}