From a9feff68b30a2cce7db1b521e3934817f8cdd0cf Mon Sep 17 00:00:00 2001 From: huahang Date: Wed, 7 Apr 2021 11:50:46 +0800 Subject: [PATCH] fix: fix new/delete mismatch --- test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }