This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit a72fe3796bfe533d43d14146acf48a60ba2668d0
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Thu May 4 16:32:08 2023 +0200
scaling: Minor refactoring
---
src/lib/scale.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/lib/scale.c b/src/lib/scale.c
index 4c2b92a..ac07b87 100644
--- a/src/lib/scale.c
+++ b/src/lib/scale.c
@@ -223,25 +223,31 @@ __imlib_CalcScaleInfo(ImlibImage * im, int sw, int sh, int dw, int dh, bool aa)
isi->xpoints = __imlib_CalcPoints(im->w, scw,
im->border.left, im->border.right);
if (!isi->xpoints)
- return __imlib_FreeScaleInfo(isi);
+ goto bail;
+
isi->ypoints = __imlib_CalcPoints(im->h, sch,
im->border.top, im->border.bottom);
if (!isi->ypoints)
- return __imlib_FreeScaleInfo(isi);
+ goto bail;
+
if (aa)
{
isi->xapoints = __imlib_CalcApoints(im->w, scw, im->border.left,
im->border.right, isi->xup_yup & 1);
if (!isi->xapoints)
- return __imlib_FreeScaleInfo(isi);
+ goto bail;
+
isi->yapoints = __imlib_CalcApoints(im->h, sch, im->border.top,
im->border.bottom,
isi->xup_yup & 2);
if (!isi->yapoints)
- return __imlib_FreeScaleInfo(isi);
+ goto bail;
}
return isi;
+
+ bail:
+ return __imlib_FreeScaleInfo(isi);
}
/* scale by pixel sampling only */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.