From 56ccf563e1de7068e414df1d05f0dd015cd44f7a Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 4 Jul 2009 03:06:34 +0200 Subject: thrown in some gui --- cvorbis.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cvorbis.c') diff --git a/cvorbis.c b/cvorbis.c index 7ce772e1..e5965d38 100644 --- a/cvorbis.c +++ b/cvorbis.c @@ -32,9 +32,12 @@ int cvorbis_init (const char *fname) { void cvorbis_free (void) { - fclose (file); - ov_clear (&vorbis_file); - vi = NULL; + if (file) { + ov_clear (&vorbis_file); + //fclose (file); -- ov_clear closes it + file = NULL; + vi = NULL; + } } int -- cgit v1.2.3