Browse Source

Fix memory leak of points structs

master
Wesley Kerfoot 5 years ago
parent
commit
55397b33e8
  1. 6
      blit_xcb.c

6
blit_xcb.c

@ -375,6 +375,8 @@ main(void) {
window, window,
expose); expose);
was_exposed = 1; was_exposed = 1;
free(points);
break; break;
} }
@ -397,9 +399,13 @@ main(void) {
display, display,
window, window,
expose); expose);
free(points);
} }
draw_color.r += 100; draw_color.r += 100;
draw_color.g -= 100;
/* General strategy for writing to buffer /* General strategy for writing to buffer
* Function should take point(s), color, and write it * Function should take point(s), color, and write it

Loading…
Cancel
Save