progs/redbook: Fix memory leak in quadric.c.
authorVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 22:10:35 +0000 (14:10 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 4 Dec 2009 07:12:59 +0000 (23:12 -0800)
(cherry picked from commit 47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc)

progs/redbook/quadric.c

index 4e46c85f829a33de13441ee44534595932c16d84..7e99098304ac91a823c83c48fd74e0d1576088f4 100644 (file)
@@ -116,6 +116,8 @@ void init(void)
    glNewList(startList+3, GL_COMPILE);
       gluPartialDisk(qobj, 0.0, 1.0, 20, 4, 0.0, 225.0);
    glEndList();
+
+   gluDeleteQuadric(qobj);
 }
 
 void display(void)