diff --git a/xwords4/relay/udpqueue.h b/xwords4/relay/udpqueue.h index 890d9d234..0aa04afa0 100644 --- a/xwords4/relay/udpqueue.h +++ b/xwords4/relay/udpqueue.h @@ -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; }