Mesa (mesa_7_6_branch): progs/demos: Fix memory leak in ray.c.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 22:49:36 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Nov 16 18:06:40 2009 -0800

progs/demos: Fix memory leak in ray.c.
(cherry picked from commit 6b480dc21dd489d48685b2268e495218aea74293)

---

 progs/demos/ray.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/progs/demos/ray.c b/progs/demos/ray.c
index c2d8e4f..e9211aa 100644
--- a/progs/demos/ray.c
+++ b/progs/demos/ray.c
@@ -834,6 +834,8 @@ initdlists(void)
    gluQuadricTexture(obj, GL_TRUE);
    gluSphere(obj, SPHERE_RADIUS, 16, 16);
    glEndList();
+
+   gluDeleteQuadric(obj);
 }
 
 int



More information about the mesa-commit mailing list