projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46492f1
)
progs/redbook: Fix memory leak in quadric.c.
author
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 22:10:35 +0000
(14:10 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 22:10:35 +0000
(14:10 -0800)
progs/redbook/quadric.c
patch
|
blob
|
history
diff --git
a/progs/redbook/quadric.c
b/progs/redbook/quadric.c
index 4e46c85f829a33de13441ee44534595932c16d84..7e99098304ac91a823c83c48fd74e0d1576088f4 100644
(file)
--- 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)