mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- resanitation of FDynamicBuffer::SetData.
This commit is contained in:
parent
57ae77412d
commit
e047902d56
1 changed files with 1 additions and 3 deletions
|
@ -2053,11 +2053,9 @@ void FDynamicBuffer::SetData (const BYTE *data, int len)
|
|||
m_Len = len;
|
||||
memcpy (m_Data, data, len);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
m_Len = 0;
|
||||
M_Free(m_Data);
|
||||
m_Data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue