summaryrefslogtreecommitdiff
path: root/progs/redbook
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-17 14:10:35 -0800
committerVinson Lee <vlee@vmware.com>2009-12-03 23:12:59 -0800
commitb210739aad1233ece4c12e93700768f331f3cac5 (patch)
tree6e9c37523463fbb911b3fad2b9ebaba96a56cb73 /progs/redbook
parentb1a87a3e0b8a4008be0e544f1b55f6facb01547d (diff)
progs/redbook: Fix memory leak in quadric.c.
(cherry picked from commit 47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc)
Diffstat (limited to 'progs/redbook')
-rw-r--r--progs/redbook/quadric.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/redbook/quadric.c b/progs/redbook/quadric.c
index 4e46c85f82..7e99098304 100644
--- a/progs/redbook/quadric.c
+++ b/progs/redbook/quadric.c
@@ -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)