It's now being done automatically.
{
struct bzlib_ostream *zstream = (struct bzlib_ostream *)stream;
- (void)o_stream_flush(&zstream->ostream.ostream);
(void)BZ2_bzCompressEnd(&zstream->zs);
if (close_parent)
o_stream_close(zstream->ostream.parent);
{
struct lz4_ostream *zstream = (struct lz4_ostream *)stream;
- (void)o_stream_flush(&zstream->ostream.ostream);
if (close_parent)
o_stream_close(zstream->ostream.parent);
}
{
struct lzma_ostream *zstream = (struct lzma_ostream *)stream;
- (void)o_stream_flush(&zstream->ostream.ostream);
lzma_end(&zstream->strm);
if (close_parent)
o_stream_close(zstream->ostream.parent);
return;
i_stream_unref(&cstream->input);
- (void)o_stream_flush(&cstream->ostream.ostream);
if (close_parent)
o_stream_close(cstream->ostream.parent);
}
{
struct file_ostream *fstream = (struct file_ostream *)stream;
- /* flush output before really closing it */
- (void)o_stream_flush(&fstream->ostream.ostream);
-
stream_closed(fstream);
}
{
struct multiplex_ochannel *const *channelp;
struct multiplex_ochannel *channel = (struct multiplex_ochannel*)stream;
- (void)o_stream_flush(&channel->ostream.ostream);
channel->closed = TRUE;
if (close_parent) {
{
struct rawlog_ostream *rstream = (struct rawlog_ostream *)stream;
- (void)o_stream_flush(rstream->ostream.parent);
iostream_rawlog_close(&rstream->riostream);
-
if (close_parent)
o_stream_close(rstream->ostream.parent);
}