diff options
author | rodri <rgl@antares-labs.eu> | 2024-05-10 22:11:09 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-05-10 22:11:09 +0000 |
commit | 0cd80fe628fc0d8a3672f1fd1d3cfa96c0b0ea2e (patch) | |
tree | 4a1e5714d78b5195c8e0acceef27f1052dadb551 | |
parent | c1a0f17d5272255456af4be4e0aa5a7e697fcf11 (diff) | |
download | libgraphics-0cd80fe628fc0d8a3672f1fd1d3cfa96c0b0ea2e.tar.gz libgraphics-0cd80fe628fc0d8a3672f1fd1d3cfa96c0b0ea2e.tar.bz2 libgraphics-0cd80fe628fc0d8a3672f1fd1d3cfa96c0b0ea2e.zip |
scene: free model materials during cleanup.
-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); |