ref: 0cd80fe628fc0d8a3672f1fd1d3cfa96c0b0ea2e
parent: c1a0f17d5272255456af4be4e0aa5a7e697fcf11
author: rodri <rgl@antares-labs.eu>
date: Fri May 10 18:11:09 EDT 2024
scene: free model materials during cleanup.
--- a/scene.c
+++ b/scene.c
@@ -306,6 +306,8 @@
freememimage(m->tex);
if(m->nor != nil)
freememimage(m->nor);
+ if(m->nmaterials > 0)
+ free(m->materials);
if(m->nprims > 0)
free(m->prims);
free(m);