From d040da4b7827e08249d9eb63e7fb231875fdf1ea Mon Sep 17 00:00:00 2001 From: Dukantic Date: Wed, 27 May 2026 09:47:33 +0200 Subject: [PATCH] free --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 25575a1..aae3b30 100644 --- a/src/main.c +++ b/src/main.c @@ -16,7 +16,7 @@ #define HEIGHT (1200) #define SIM_WIDTH (800) #define SIM_HEIGHT (600) -#define N_SIMULATION (1000) +#define N_SIMULATION (100) const int FPS = 60; const int FRAME_DELAY = 1000 / FPS; @@ -116,7 +116,8 @@ int main(int argc, char* argv[]) { printf("Simulation with %d iteration, duration : %.6f s\n", N_SIMULATION, elapsed); } - + if (flags.multithread) + destroy_threads(threads, n_threads, ta); free_board(b); free(ta); free(threads);