From ae69a754244c4e475c8d2591772ca8e005071d83 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Feb 2019 11:55:41 +0100 Subject: Update to 5.42 --- hacks/glx/bubble3d.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'hacks/glx/bubble3d.c') diff --git a/hacks/glx/bubble3d.c b/hacks/glx/bubble3d.c index 9cd2afc..7b0b686 100644 --- a/hacks/glx/bubble3d.c +++ b/hacks/glx/bubble3d.c @@ -114,20 +114,20 @@ glb_bubble_new(glb_data *d, GLfloat x, GLfloat y, GLfloat z, GLfloat scale, b->contributions = (GLfloat *) malloc(sizeof (GLfloat) * nr_vertices * glb_config.nr_nudge_axes); if (b->contributions == 0) { - (void) free((void *) b); + free(b); return 0; } b->nudge_angle = (GLfloat *) malloc(sizeof (GLfloat) * glb_config.nr_nudge_axes); if (b->nudge_angle == 0) { - (void) free((void *) b->contributions); - (void) free((void *) b); + free(b->contributions); + free(b); return 0; } b->nudge_angle_incr = (GLfloat *) malloc(sizeof (GLfloat) * glb_config.nr_nudge_axes); if (b->nudge_angle_incr == 0) { - (void) free((void *) b->nudge_angle); - (void) free((void *) b->contributions); - (void) free((void *) b); + free(b->nudge_angle); + free(b->contributions); + free(b); return 0; } /* Initialize primitive elements. */ @@ -176,18 +176,18 @@ glb_bubble_delete(void *bb) if (b != NULL) { if (b->nudge_angle_incr) { - (void) free((void *) b->nudge_angle_incr); + free(b->nudge_angle_incr); b->nudge_angle_incr = NULL; } if (b->nudge_angle) { - (void) free((void *) b->nudge_angle); + free(b->nudge_angle); b->nudge_angle = NULL; } if (b->contributions) { - (void) free((void *) b->contributions); + free(b->contributions); b->contributions = NULL; } - (void) free((void *) b); + free(b); b = NULL; } } @@ -267,7 +267,7 @@ glb_bubble_draw(glb_data *d, void *bb) } glEnd(); glPopMatrix(); - (void) free((void *) new_vertices); + free(new_vertices); glb_config.polygon_count += nr_triangles; } -- cgit v1.2.3-55-g7522