Merge pull request #106 from sr-tream/geomfix

Fix double-free materials
This commit is contained in:
aap
2022-07-08 19:35:53 +02:00
committed by GitHub

View File

@@ -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;
}
}