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>
Tue, 17 Nov 2009 22:10:35 +0000 (14:10 -0800)
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)