mirror of
https://github.com/aap/librw.git
synced 2024-11-27 14:15:41 +00:00
Merge pull request #106 from sr-tream/geomfix
Fix double-free materials
This commit is contained in:
commit
841325cea5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user