progs/redbook: Fix memory leak in quadric.c.
This commit is contained in:
@@ -116,6 +116,8 @@ void init(void)
|
|||||||
glNewList(startList+3, GL_COMPILE);
|
glNewList(startList+3, GL_COMPILE);
|
||||||
gluPartialDisk(qobj, 0.0, 1.0, 20, 4, 0.0, 225.0);
|
gluPartialDisk(qobj, 0.0, 1.0, 20, 4, 0.0, 225.0);
|
||||||
glEndList();
|
glEndList();
|
||||||
|
|
||||||
|
gluDeleteQuadric(qobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
void display(void)
|
void display(void)
|
||||||
|
Reference in New Issue
Block a user