diff options
-rw-r--r-- | scene.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |