Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move jpeg_finish_compress out of destructor (#433)
* Move jpeg_finish_compress out of destr Moving the function out will ensure that no function that can error will be called inside a destructor, thus leaving no chance to get two exceptions in flight or finishing compression even if an error occured * Comments and minor stylistical changes Added comments to explain why finish compress was moved out of destructor, and did stylistical changes
- Loading branch information