call gluDeleteQuadric() to fix mem leak
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 19 Nov 2005 23:09:14 +0000 (23:09 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 19 Nov 2005 23:09:14 +0000 (23:09 +0000)
progs/demos/reflect.c

index 9cd71d1..1a45041 100644 (file)
@@ -181,6 +181,8 @@ MakeObjects(GLuint *objects_list)
    glMaterialfv( GL_FRONT, GL_EMISSION, black );
    gluCylinder( q, 1.5, 0.0,  2.5, 15, 1 );
    glEndList();
+
+   gluDeleteQuadric(q);
 }