mirror of https://github.com/aap/librw.git
Fix double-free materials
This commit is contained in:
parent
a6d659d1b5
commit
ed2e1ddb37
|
@ -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