From be0665ce5890dbae96a7254815b7ffc662f917de Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 5 Nov 2021 01:44:39 +0100 Subject: [PATCH] glu: drop bad upstreamed patch --- srcpkgs/glu/patches/fix-memory-leak.patch | 33 ----------------------- srcpkgs/glu/template | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 srcpkgs/glu/patches/fix-memory-leak.patch diff --git a/srcpkgs/glu/patches/fix-memory-leak.patch b/srcpkgs/glu/patches/fix-memory-leak.patch deleted file mode 100644 index e2ab2f749c0..00000000000 --- a/srcpkgs/glu/patches/fix-memory-leak.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 0bf42e41c8b63fc2488dd8d41f696310b5a5a6a7 Mon Sep 17 00:00:00 2001 -From: Amarnath Valluri -Date: Fri, 10 Jun 2016 05:30:00 -0600 -Subject: libutils/mipmap.c: Fixed possible memory leak - -In case of malloc() failure memory allocated for both 'srcImage' -and 'dstImage' is leaked. - -Patch simplified by Brian Paul. - -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96480 -Signed-off-by: Amarnath Valluri -Reviewed-by: Brian Paul ---- - src/libutil/mipmap.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/src/libutil/mipmap.c b/src/libutil/mipmap.c -index c475c96..483c3fe 100644 ---- a/src/libutil/mipmap.c -+++ b/src/libutil/mipmap.c -@@ -4509,6 +4509,8 @@ static int gluBuild2DMipmapLevelsCore(GLenum target, GLint internalFormat, - glPixelStorei(GL_UNPACK_SKIP_PIXELS, psm.unpack_skip_pixels); - glPixelStorei(GL_UNPACK_ROW_LENGTH, psm.unpack_row_length); - glPixelStorei(GL_UNPACK_SWAP_BYTES, psm.unpack_swap_bytes); -+ free(srcImage); -+ free(dstImage); - return GLU_OUT_OF_MEMORY; - } - --- -cgit v1.1 - diff --git a/srcpkgs/glu/template b/srcpkgs/glu/template index dd54bebdd92..da1338aef7d 100644 --- a/srcpkgs/glu/template +++ b/srcpkgs/glu/template @@ -1,7 +1,7 @@ # Template file for 'glu' pkgname=glu version=9.0.2 -revision=1 +revision=2 build_style=meson configure_args="-Ddefault_library=shared" hostmakedepends="pkg-config"