mirror of https://github.com/aap/librw.git
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