Merge pull request #22147 from azat/writers-fixes

Use finalize() over next() for nested writers
This commit is contained in:
alexey-milovidov 2021-03-26 22:05:18 +03:00 committed by GitHub
commit 607d36dd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ void BrotliWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)

View File

@ -105,7 +105,7 @@ void LZMADeflatingWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)

View File

@ -107,7 +107,7 @@ void ZlibDeflatingWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)

View File

@ -94,7 +94,7 @@ void ZstdDeflatingWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)