Skip to content

Commit a2c19ba

Browse files
committed
Fix the TwoWire destructor to use the array delete operator.
1 parent b11388b commit a2c19ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

avr/libraries/Wire/src/Wire.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ TwoWire::TwoWire(int bufferLength,
379379

380380
TwoWire::~TwoWire()
381381
{
382-
delete rxBuffer;
383-
delete txBuffer;
382+
delete[] rxBuffer;
383+
delete[] txBuffer;
384384
}
385385

386386
// Public Methods //////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)