mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
Fix memory leaks for JpegXLDecoder
This commit is contained in:
parent
1d701d1690
commit
b7e1cba660
@ -32,9 +32,9 @@ JpegXLDecoder::~JpegXLDecoder()
|
|||||||
void JpegXLDecoder::close()
|
void JpegXLDecoder::close()
|
||||||
{
|
{
|
||||||
if (m_decoder)
|
if (m_decoder)
|
||||||
m_decoder.release();
|
m_decoder.reset();
|
||||||
if (m_f)
|
if (m_f)
|
||||||
m_f.release();
|
m_f.reset();
|
||||||
m_read_buffer = {};
|
m_read_buffer = {};
|
||||||
m_width = m_height = 0;
|
m_width = m_height = 0;
|
||||||
m_type = m_convert = -1;
|
m_type = m_convert = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user