mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
pair delete[] with new[]
This commit is contained in:
parent
c587848349
commit
b1ef09625e
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
memcpy( m_buf, buf, len );
|
||||
}
|
||||
|
||||
~UdpThreadClosure() { delete m_buf; }
|
||||
~UdpThreadClosure() { delete[] m_buf; }
|
||||
|
||||
const unsigned char* buf() const { return m_buf; }
|
||||
int len() const { return m_len; }
|
||||
|
|
Loading…
Reference in a new issue