From 55397b33e898484b57d93d5bd1c587c927d6deca Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Mon, 1 Jul 2019 21:22:48 -0400 Subject: [PATCH] Fix memory leak of points structs --- blit_xcb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blit_xcb.c b/blit_xcb.c index 26303e7..349f64c 100644 --- a/blit_xcb.c +++ b/blit_xcb.c @@ -375,6 +375,8 @@ main(void) { window, expose); was_exposed = 1; + free(points); + break; } @@ -397,9 +399,13 @@ main(void) { display, window, expose); + + free(points); } draw_color.r += 100; + draw_color.g -= 100; + /* General strategy for writing to buffer * Function should take point(s), color, and write it