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 9cd71d1c3db5f9e89b7b8bf2744aa61d6470f885..1a4504175fd5686b3d8d7482165f9c43d144a124 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);
 }