wraster: Remove duplicate code
commit920c6d16b17ff9977369bf7dcca7e55dd886a6db
authorChristophe CURIS <christophe.curis@free.fr>
Thu, 13 May 2021 16:47:38 +0000 (13 18:47 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 18 May 2021 16:49:17 +0000 (18 17:49 +0100)
tree9205c57a56c121cba30576c9a17791f6e119b15b
parent8aecba27d1d30863920e2df2a4dce2dc1b195fc8
wraster: Remove duplicate code

Duplicating things makes maintenance error-prone, which is not a good idea.
In case the abort procedure would need an update, it would be easy then
to forget some place, leading to leaks, if not worse.

Beside, goto is not as bad as academics would like people to believe, when
it is used correctly (and this case is one of them).
The name for the label was given an explicit meaning to make code easy to
understand.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/load_jpeg.c