From 990153e7c5f9c6f3adc3781f9cb5588258ab36c7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 16 Nov 2019 11:50:00 -0800 Subject: sparkler: plug some memory leaks particles_free() didn't do all the necessary cleanup. bsp_free() remains mostly unimplemented. I think this wasn't done at the time because I was thinking bsp.c should use the chunker, then cleanup is just a matter of freeing the chunker instead of traversing the bsp. --- src/modules/sparkler/particles.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/modules/sparkler/particles.c b/src/modules/sparkler/particles.c index 5116e3a..8ebb61d 100644 --- a/src/modules/sparkler/particles.c +++ b/src/modules/sparkler/particles.c @@ -99,6 +99,9 @@ void particles_free(particles_t *particles) assert(particles); _particles_free(particles, &particles->active); + bsp_free(particles->bsp); + chunker_free_chunker(particles->chunker); + free(particles); } -- cgit v1.2.1