diff options
author | 2009-07-04 03:06:34 +0200 | |
---|---|---|
committer | 2009-07-04 03:06:34 +0200 | |
commit | 56ccf563e1de7068e414df1d05f0dd015cd44f7a (patch) | |
tree | 16c86ec05830b245f0e05bbfb12c2842ea3ca927 /cvorbis.c | |
parent | 4f836e3de6c0a40f7bb29650ae9ae3230bad31b4 (diff) |
thrown in some gui
Diffstat (limited to 'cvorbis.c')
-rw-r--r-- | cvorbis.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |