[vlc-devel] commit: Use delete[] for arrays. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Aug 19 23:48:18 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 19 23:45:10 2008 +0200| [9d63f3c040dc3766db35b1ffcad8423362941df9] | committer: Rémi Duraffort
Use delete[] for arrays.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d63f3c040dc3766db35b1ffcad8423362941df9
---
modules/video_filter/atmo/AtmoSerialConnection.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/atmo/AtmoSerialConnection.cpp b/modules/video_filter/atmo/AtmoSerialConnection.cpp
index 81b3c83..3d1975a 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;
}
More information about the vlc-devel
mailing list