diff --git a/modules/video_filter/atmo/AtmoSerialConnection.cpp b/modules/video_filter/atmo/AtmoSerialConnection.cpp index 81b3c83c36..3d1975a814 100644 --- a/modules/video_filter/atmo/AtmoSerialConnection.cpp +++ b/modules/video_filter/atmo/AtmoSerialConnection.cpp @@ -266,7 +266,7 @@ ATMO_BOOL CAtmoSerialConnection::SendData(unsigned char numChannels, tcdrain(m_hComport); #endif - delete buffer; + delete[] buffer; return (iBytesWritten == bufSize) ? ATMO_TRUE : ATMO_FALSE; }