summaryrefslogtreecommitdiff
authorzecke <zecke>2004-05-07 16:45:46 (UTC)
committer zecke <zecke>2004-05-07 16:45:46 (UTC)
commitde674154922b40fd2c01e008c7a7871520a86209 (patch) (unidiff)
tree29155a26d71fa6c6f59bd01ad3dece7f15193905
parenta8c2ce4c6bc83223a32e6e803b1277a0db5ebd7f (diff)
downloadopie-de674154922b40fd2c01e008c7a7871520a86209.zip
opie-de674154922b40fd2c01e008c7a7871520a86209.tar.gz
opie-de674154922b40fd2c01e008c7a7871520a86209.tar.bz2
If you create an array, delete it as an array
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/opcap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp
index 8184f21..03e4502 100644
--- a/libopie2/opienet/opcap.cpp
+++ b/libopie2/opienet/opcap.cpp
@@ -91,9 +91,9 @@ OPacket::OPacket( int datalink, packetheaderstruct header, const unsigned char*
91 91
92OPacket::~OPacket() 92OPacket::~OPacket()
93{ 93{
94 odebug << "~OPacket( " << name() << " )" << oendl; 94 odebug << "~OPacket( " << name() << " )" << oendl;
95 delete _data; 95 delete [] _data;
96} 96}
97 97
98 98
99timevalstruct OPacket::timeval() const 99timevalstruct OPacket::timeval() const