diff --git a/src/geometry.cpp b/src/geometry.cpp index 5d31c34..882b685 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -727,6 +727,7 @@ MaterialList::deinit(void) for(int32 i = 0; i < this->numMaterials; i++) this->materials[i]->destroy(); rwFree(this->materials); + this->materials = nil; } }