release png,jpeg resources in destructor

This commit is contained in:
Berke 2022-07-14 16:45:47 +03:00
parent 139c443770
commit b4b69ae484
2 changed files with 0 additions and 8 deletions

View File

@ -260,9 +260,6 @@ bool JpegDecoder::readHeader()
}
}
if( !result )
close();
return result;
}
@ -512,7 +509,6 @@ bool JpegDecoder::readData( Mat& img )
}
}
close();
return result;
}

View File

@ -214,9 +214,6 @@ bool PngDecoder::readHeader()
}
}
if( !result )
close();
return result;
}
@ -304,7 +301,6 @@ bool PngDecoder::readData( Mat& img )
}
}
close();
return result;
}