Fix AddressSanitizer alloc-dealloc-mismatch

This commit is contained in:
badaix 2020-01-12 15:26:20 +01:00
parent 52af69618c
commit 1bd5365c64

View file

@ -58,8 +58,8 @@ FlacDecoder::FlacDecoder() : Decoder(), lastError_(nullptr)
FlacDecoder::~FlacDecoder() FlacDecoder::~FlacDecoder()
{ {
std::lock_guard<std::mutex> lock(mutex_); std::lock_guard<std::mutex> lock(mutex_);
FLAC__stream_decoder_delete(decoder);
delete flacChunk; delete flacChunk;
delete decoder;
} }