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>
Fri, 4 Dec 2009 06:36:37 +0000 (22:36 -0800)
(cherry picked from commit aef3218f0bb48fdb286d2008ee07e507ea8aa98e)

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