From 5b9d4fb241e6539512894b2e33e8ae5360d0b4fd Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 26 Sep 2002 19:37:01 +0000 Subject: [PATCH] close the file if vorbis doesn't like it --- libs/audio/renderer/vorbis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/audio/renderer/vorbis.c b/libs/audio/renderer/vorbis.c index e75112b7b..26252ffba 100644 --- a/libs/audio/renderer/vorbis.c +++ b/libs/audio/renderer/vorbis.c @@ -101,6 +101,7 @@ SND_LoadOgg (QFile *file, sfx_t *sfx, cache_allocator_t allocator) if (ov_open_callbacks (file, &vf, 0, 0, callbacks) < 0) { Sys_Printf ("Input does not appear to be an Ogg bitstream.\n"); + Qclose (file); return 0; } vi = ov_info (&vf, -1);