fix bug: explicitly close output file in Ogg FLAC case

This commit is contained in:
Josh Coalson
2002-12-30 23:28:22 +00:00
parent d72282173f
commit 65d253dacd

View File

@@ -1245,6 +1245,8 @@ void EncoderSession_destroy(EncoderSession *e)
{
if(e->fin != stdin)
fclose(e->fin);
if(0 != e->fout && e->fout != stdout)
fclose(e->fout);
#ifdef FLAC__HAS_OGG
if(e->use_ogg) {