diff options
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/audiofile_plugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder/audiofile_plugin.c b/src/decoder/audiofile_plugin.c index c4c72ea42..2445887df 100644 --- a/src/decoder/audiofile_plugin.c +++ b/src/decoder/audiofile_plugin.c @@ -22,6 +22,7 @@ #include <audiofile.h> #include <af_vfs.h> +#include <assert.h> #include <glib.h> #undef G_LOG_DOMAIN @@ -68,9 +69,9 @@ audiofile_file_tell(AFvirtualfile *vfile) static void audiofile_file_destroy(AFvirtualfile *vfile) { - struct input_stream *is = (struct input_stream *) vfile->closure; + assert(vfile->closure != NULL); + vfile->closure = NULL; - input_stream_close(is); } static long |