1
0
mirror of https://github.com/aap/librw.git synced 2025-05-14 20:32:49 +01:00

Merge pull request 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

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