mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- if this buffer is freed, the pointer referring to it must also be deleted.
This commit is contained in:
parent
45117b2603
commit
ae78aeaacb
1 changed files with 1 additions and 0 deletions
|
@ -2057,6 +2057,7 @@ void FDynamicBuffer::SetData (const BYTE *data, int len)
|
|||
{
|
||||
m_Len = 0;
|
||||
M_Free(m_Data);
|
||||
m_Data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue