File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ namespace ErrorCodes
1414 extern const int BZIP2_STREAM_ENCODER_FAILED;
1515}
1616
17- Bzip2WriteBuffer::~Bzip2WriteBuffer () = default ;
17+ Bzip2WriteBuffer::~Bzip2WriteBuffer ()
18+ {
19+ BZ2_bzCompressEnd (&stream);
20+ }
1821
1922void Bzip2WriteBuffer::nextImpl ()
2023{
@@ -87,11 +90,6 @@ void Bzip2WriteBuffer::finalizeBefore()
8790 while (true );
8891}
8992
90- void Bzip2WriteBuffer::finalizeAfter ()
91- {
92- BZ2_bzCompressEnd (&stream);
93- }
94-
9593}
9694
9795#endif
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ class Bzip2WriteBuffer : public WriteBufferWithOwnMemoryDecorator
4848 void nextImpl () override ;
4949
5050 void finalizeBefore () override ;
51- void finalizeAfter () override ;
5251
5352 bz_stream stream;
5453 bool compress_empty = true ;
You can’t perform that action at this time.
0 commit comments