Make sure we aren't keeping the input file opened.
[ruby-vorbistagger.git] / ext / vcedit.c
index 073196b3fdb1b1b9ebfcda7166b871f7d1354de3..336ce26e94f531a299c045091016dc1bfe7d60d2 100644 (file)
@@ -68,6 +68,11 @@ vcedit_state_free (vcedit_state *state)
        free (state->bookbuf);
        free (state->vendor);
 
+       if (state->in) {
+               fclose (state->in);
+               state->in = NULL;
+       }
+
        free (state);
 }