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
commit 841325cea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -727,6 +727,7 @@ MaterialList::deinit(void)
for(int32 i = 0; i < this->numMaterials; i++) for(int32 i = 0; i < this->numMaterials; i++)
this->materials[i]->destroy(); this->materials[i]->destroy();
rwFree(this->materials); rwFree(this->materials);
this->materials = nil;
} }
} }