Fix double-free materials

This commit is contained in:
SR_team 2022-07-08 19:30:52 +03:00
parent a6d659d1b5
commit ed2e1ddb37
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++)
this->materials[i]->destroy();
rwFree(this->materials);
this->materials = nil;
}
}