Allocating some buffers using dynamic memory

This commit is contained in:
Andy CA6JAU
2018-07-29 20:49:33 -04:00
parent 496e705536
commit 536a38dd38
16 changed files with 44 additions and 19 deletions
+6 -1
View File
@@ -109,12 +109,17 @@ m_nxdnFrames(0U),
m_ysfFrames(0U),
m_nxdninfo(false)
{
m_ysfFrame = new unsigned char[200U];
m_nxdnFrame = new unsigned char[200U];
::memset(m_ysfFrame, 0U, 200U);
::memset(m_nxdnFrame, 0U, 50U);
::memset(m_nxdnFrame, 0U, 200U);
}
CYSF2NXDN::~CYSF2NXDN()
{
delete[] m_ysfFrame;
delete[] m_nxdnFrame;
}
int CYSF2NXDN::run()