mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
release png,jpeg resources in destructor
This commit is contained in:
parent
139c443770
commit
b4b69ae484
@ -260,9 +260,6 @@ bool JpegDecoder::readHeader()
|
||||
}
|
||||
}
|
||||
|
||||
if( !result )
|
||||
close();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -512,7 +509,6 @@ bool JpegDecoder::readData( Mat& img )
|
||||
}
|
||||
}
|
||||
|
||||
close();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -214,9 +214,6 @@ bool PngDecoder::readHeader()
|
||||
}
|
||||
}
|
||||
|
||||
if( !result )
|
||||
close();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -304,7 +301,6 @@ bool PngDecoder::readData( Mat& img )
|
||||
}
|
||||
}
|
||||
|
||||
close();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user