Mesa (mesa_7_6_branch): progs/glsl: Fix memory leak in deriv.c.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 22:54:51 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: b1a87a3e0b8a4008be0e544f1b55f6facb01547d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1a87a3e0b8a4008be0e544f1b55f6facb01547d

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Nov 17 09:53:19 2009 -0800

progs/glsl: Fix memory leak in deriv.c.
(cherry picked from commit 0e783c7d03128aade3ca50b28a56e254fef6b6ab)

---

 progs/glsl/deriv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/progs/glsl/deriv.c b/progs/glsl/deriv.c
index 265a515..30f2b75 100644
--- a/progs/glsl/deriv.c
+++ b/progs/glsl/deriv.c
@@ -140,6 +140,7 @@ MakeSphere(void)
    glNewList(SphereList, GL_COMPILE);
    gluSphere(obj, 2.0f, 30, 15);
    glEndList();
+   gluDeleteQuadric(obj);
 }
 
 



More information about the mesa-commit mailing list