diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2019-11-16 11:50:00 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2019-11-16 11:50:00 -0800 |
commit | 990153e7c5f9c6f3adc3781f9cb5588258ab36c7 (patch) | |
tree | 0f0c70c35bf6ef8ae9070a97c99de9e92d10a9ed /src/modules/sparkler/particles.c | |
parent | 75875b67bf8a5a4142a5faaaab7a434a7b68772c (diff) |
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.
Diffstat (limited to 'src/modules/sparkler/particles.c')
-rw-r--r-- | src/modules/sparkler/particles.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |