projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1a87a3
)
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>
Fri, 4 Dec 2009 07:12:59 +0000
(23:12 -0800)
(cherry picked from commit
47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc
)
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)