fix fclose bug
authorJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 12 Feb 2001 09:04:49 +0000 (09:04 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 12 Feb 2001 09:04:49 +0000 (09:04 +0000)
src/flac/encode.c

index 5150dab..6b58e05 100644 (file)
@@ -677,7 +677,7 @@ framesize_:
        b = (byte)(max_framesize & 0xFF);
        if(fwrite(&b, 1, 1, f) != 1) goto end_;
 end_:
-       fclose(encoder_wrapper->fout);
+       fclose(f);
        return;
 }