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>
Tue, 17 Nov 2009 02:06:40 +0000 (18:06 -0800)
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