htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit 1c50d98515482776f552c28d89ecec4a75821ad2
parent a46de58225e8d475c588bfe45cc6c13bc2d06896
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 26 Mar 2020 14:30:27 +0100

On exit, do not forget to close the output stream

Diffstat:
Msrc/htrdr.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/htrdr.c b/src/htrdr.c @@ -645,6 +645,7 @@ htrdr_release(struct htrdr* htrdr) if(htrdr->cam) htrdr_camera_ref_put(htrdr->cam); if(htrdr->buf) htrdr_buffer_ref_put(htrdr->buf); if(htrdr->mtl) htrdr_mtl_ref_put(htrdr->mtl); + if(htrdr->output && htrdr->output != stdout) fclose(htrdr->output); if(htrdr->lifo_allocators) { size_t i; FOR_EACH(i, 0, htrdr->nthreads) {