Skip to content

Commit

Permalink
Fixed memory leak in DecodedDataStream
Browse files Browse the repository at this point in the history
  • Loading branch information
veloman-yunkan committed Aug 31, 2020
1 parent a22773c commit 7d21ff4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/decodeddatastream.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class DecodedDataStream : public IDataStream
readNextChunk();
}

~DecodedDataStream()
{
Decoder::stream_end_decode(&decoderState_);
}

private: // functions
void readNextChunk()
{
Expand Down

0 comments on commit 7d21ff4

Please sign in to comment.