X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftube.c;h=f218d4a3aa891d32d136c8ffeb47c4b4c4f2148f;hp=a21682501fb63f0a86fcda4c14c6e826a122f421;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hpb=50be9bb40dc60130c99ffa568e6677779904ff70 diff --git a/hacks/glx/tube.c b/hacks/glx/tube.c index a2168250..f218d4a3 100644 --- a/hacks/glx/tube.c +++ b/hacks/glx/tube.c @@ -1,4 +1,4 @@ -/* tube, Copyright (c) 2001-2010 Jamie Zawinski +/* tube, Copyright (c) 2001-2011 Jamie Zawinski * Utility functions to create tubes and cones in GL. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -28,6 +28,7 @@ typedef struct { GLfloat x, y, z; } XYZ; + static int unit_tube (int faces, int smooth, int caps_p, int wire_p) { @@ -181,6 +182,8 @@ unit_tube (int faces, int smooth, int caps_p, int wire_p) glDrawArrays ((wire_p ? GL_LINE_LOOP : GL_TRIANGLE_FAN), 0, out); } + free(array); + return polys; }