summaryrefslogtreecommitdiff
path: root/cvorbis.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-07-04 03:06:34 +0200
committerGravatar waker <wakeroid@gmail.com>2009-07-04 03:06:34 +0200
commit56ccf563e1de7068e414df1d05f0dd015cd44f7a (patch)
tree16c86ec05830b245f0e05bbfb12c2842ea3ca927 /cvorbis.c
parent4f836e3de6c0a40f7bb29650ae9ae3230bad31b4 (diff)
thrown in some gui
Diffstat (limited to 'cvorbis.c')
-rw-r--r--cvorbis.c9
1 files changed, 6 insertions, 3 deletions
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