Merge pull request #26787 from MaximSmolskiy:fix_memory_leaks_for_JpegXLDecoder

Fix memory leaks for JpegXLDecoder
This commit is contained in:
Alexander Smorkalov 2025-01-20 13:33:10 +03:00 committed by GitHub
commit 2db6b29a76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,9 +32,9 @@ JpegXLDecoder::~JpegXLDecoder()
void JpegXLDecoder::close()
{
if (m_decoder)
m_decoder.release();
m_decoder.reset();
if (m_f)
m_f.release();
m_f.reset();
m_read_buffer = {};
m_width = m_height = 0;
m_type = m_convert = -1;