Merge pull request #311 from huahang/patch-1

fix: fix new/delete mismatch
This commit is contained in:
Linwei
2021-04-08 00:14:49 +08:00
committed by GitHub

2
test.h
View File

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