diff --git a/test.h b/test.h index b40e3cc..6f66b53 100644 --- a/test.h +++ b/test.h @@ -88,7 +88,7 @@ class DelayPacket { public: virtual ~DelayPacket() { - if (_ptr) delete _ptr; + if (_ptr) delete[] _ptr; _ptr = NULL; }