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
commit 6de8bbf271
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: public:
virtual ~DelayPacket() { virtual ~DelayPacket() {
if (_ptr) delete _ptr; if (_ptr) delete[] _ptr;
_ptr = NULL; _ptr = NULL;
} }