mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Don't leak binaryBlob
This commit is contained in:
@@ -123,6 +123,18 @@ bool binaryBlob::unPackBinary(const char* name)
|
||||
return true;
|
||||
}
|
||||
|
||||
void binaryBlob::clear()
|
||||
{
|
||||
for (int i = 0; i < 128; i += 1)
|
||||
{
|
||||
if (m_headers[i].valid)
|
||||
{
|
||||
free(m_memblocks[i]);
|
||||
m_headers[i].valid = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int binaryBlob::getIndex(const char* _name)
|
||||
{
|
||||
for (int i = 0; i < 128; i += 1)
|
||||
|
||||
Reference in New Issue
Block a user