fix memory leak in P25NID

This commit is contained in:
Shawn Chain
2018-07-03 15:09:11 +08:00
parent 1b7abded67
commit ae532156c5

View File

@@ -34,7 +34,8 @@ m_ldu1(NULL),
m_ldu2(NULL),
m_termlc(NULL),
m_term(NULL),
m_pdu(NULL)
m_pdu(NULL),
m_tsdu(NULL)
{
CBCH bch;
@@ -96,6 +97,7 @@ CP25NID::~CP25NID()
delete[] m_termlc;
delete[] m_term;
delete[] m_pdu;
delete[] m_tsdu;
}
bool CP25NID::decode(const unsigned char* data)