Commit 9d63f3c0 authored by Rémi Duraffort's avatar Rémi Duraffort

Use delete[] for arrays.

parent b130be65
...@@ -266,7 +266,7 @@ ATMO_BOOL CAtmoSerialConnection::SendData(unsigned char numChannels, ...@@ -266,7 +266,7 @@ ATMO_BOOL CAtmoSerialConnection::SendData(unsigned char numChannels,
tcdrain(m_hComport); tcdrain(m_hComport);
#endif #endif
delete buffer; delete[] buffer;
return (iBytesWritten == bufSize) ? ATMO_TRUE : ATMO_FALSE; return (iBytesWritten == bufSize) ? ATMO_TRUE : ATMO_FALSE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment