From 46910fa0e7630302ba2957dbe476c6fe1d637ca1 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Thu, 2 May 2024 13:25:01 +0200 Subject: [PATCH] fix memory leak --- main.odin | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.odin b/main.odin index e46b776..882e0a8 100644 --- a/main.odin +++ b/main.odin @@ -26,9 +26,10 @@ main :: proc() { } } -print_board :: proc(state: ^[AREA]bool){ +print_board :: proc(state: ^[AREA]bool) { for y := 0; y < HEIGHT; y += 2{ line := strings.builder_make() + defer strings.builder_destroy(&line) for x in 0..