progs/glsl: Fix memory leak in deriv.c.
authorVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 17:53:19 +0000 (09:53 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 17:54:54 +0000 (09:54 -0800)
progs/glsl/deriv.c

index 265a51571548b5bae3fefb4da59884af28f7ba39..30f2b75fef7c4c93b6c58bba6725dfb6530129fc 100644 (file)
@@ -140,6 +140,7 @@ MakeSphere(void)
    glNewList(SphereList, GL_COMPILE);
    gluSphere(obj, 2.0f, 30, 15);
    glEndList();
+   gluDeleteQuadric(obj);
 }