summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scene.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene.c b/scene.c
index a430183..23a546a 100644
--- a/scene.c
+++ b/scene.c
@@ -306,6 +306,8 @@ delmodel(Model *m)
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);