progs/demos: Fix memory leak in ray.c.
authorVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 02:06:40 +0000 (18:06 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 4 Dec 2009 06:49:18 +0000 (22:49 -0800)
(cherry picked from commit 6b480dc21dd489d48685b2268e495218aea74293)

progs/demos/ray.c

index c2d8e4f545e352207f7628e470388eb97a73b828..e9211aa3399b5a934b6b8be76c5de6eaf35756f3 100644 (file)
@@ -834,6 +834,8 @@ initdlists(void)
    gluQuadricTexture(obj, GL_TRUE);
    gluSphere(obj, SPHERE_RADIUS, 16, 16);
    glEndList();
+
+   gluDeleteQuadric(obj);
 }
 
 int