Skip to content

Commit a9feff6

Browse files
authored
fix: fix new/delete mismatch
1 parent 77a4f85 commit a9feff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class DelayPacket
8888
{
8989
public:
9090
virtual ~DelayPacket() {
91-
if (_ptr) delete _ptr;
91+
if (_ptr) delete[] _ptr;
9292
_ptr = NULL;
9393
}
9494

0 commit comments

Comments
 (0)