test: update b_stream usage
This commit is contained in:
@@ -82,7 +82,7 @@ int main(int argc, const char **argv)
|
||||
printf("Done\n");
|
||||
|
||||
b_cstream_close(cstream);
|
||||
b_stream_close(out_stream);
|
||||
b_stream_unref(out_stream);
|
||||
fclose(out_fp);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -76,7 +76,7 @@ int main(int argc, const char **argv)
|
||||
printf("Done\n");
|
||||
|
||||
b_cstream_close(cstream);
|
||||
b_stream_close(in_stream);
|
||||
b_stream_unref(in_stream);
|
||||
fclose(in_fp);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -43,7 +43,7 @@ static int compress(const b_compression_function *func, FILE *in, FILE *out)
|
||||
|
||||
b_cstream_end_compressed_section(cstream, NULL, NULL);
|
||||
b_cstream_close(cstream);
|
||||
b_stream_close(out_stream);
|
||||
b_stream_unref(out_stream);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ static int decompress(const b_compression_function *func, FILE *in, FILE *out)
|
||||
|
||||
b_cstream_end_compressed_section(cstream, NULL, NULL);
|
||||
b_cstream_close(cstream);
|
||||
b_stream_close(in_stream);
|
||||
b_stream_unref(in_stream);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user