fix: fix new/delete mismatch

This commit is contained in:
huahang 2021-04-07 11:50:46 +08:00 committed by GitHub
parent 77a4f85ae6
commit a9feff68b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
test.h
View File

@ -88,7 +88,7 @@ class DelayPacket
{
public:
virtual ~DelayPacket() {
if (_ptr) delete _ptr;
if (_ptr) delete[] _ptr;
_ptr = NULL;
}