From: Vinson Lee Date: Mon, 16 Nov 2009 22:56:07 +0000 (-0800) Subject: progs/demos: Fix memory leak in fslight.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d245a951f39fe480c6268dbcc1fa06d59c40109e;p=mesa.git progs/demos: Fix memory leak in fslight.c. (cherry picked from commit aef3218f0bb48fdb286d2008ee07e507ea8aa98e) --- diff --git a/progs/demos/fslight.c b/progs/demos/fslight.c index f0d76a4a06f..acba3e9583f 100644 --- a/progs/demos/fslight.c +++ b/progs/demos/fslight.c @@ -353,6 +353,7 @@ MakeSphere(void) glNewList(SphereList, GL_COMPILE); gluSphere(obj, 2.0f, 10, 5); glEndList(); + gluDeleteQuadric(obj); } static void