progs/demos: Fix memory leak in fslight.c.
authorVinson Lee <vlee@vmware.com>
Mon, 16 Nov 2009 22:56:07 +0000 (14:56 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 16 Nov 2009 22:56:07 +0000 (14:56 -0800)
progs/demos/fslight.c

index f0d76a4a06fb50de4ec40ba530cf4c3bf179b229..acba3e9583f15c62f8d3827cf7e1919a60f16a92 100644 (file)
@@ -353,6 +353,7 @@ MakeSphere(void)
    glNewList(SphereList, GL_COMPILE);
    gluSphere(obj, 2.0f, 10, 5);
    glEndList();
+   gluDeleteQuadric(obj);
 }
 
 static void