From: Vinson Lee Date: Tue, 17 Nov 2009 22:10:35 +0000 (-0800) Subject: progs/redbook: Fix memory leak in quadric.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc;p=mesa.git progs/redbook: Fix memory leak in quadric.c. --- diff --git a/progs/redbook/quadric.c b/progs/redbook/quadric.c index 4e46c85f829..7e99098304a 100644 --- a/progs/redbook/quadric.c +++ b/progs/redbook/quadric.c @@ -116,6 +116,8 @@ void init(void) glNewList(startList+3, GL_COMPILE); gluPartialDisk(qobj, 0.0, 1.0, 20, 4, 0.0, 225.0); glEndList(); + + gluDeleteQuadric(qobj); } void display(void)