Skip to content

Commit 342f4d1

Browse files
authored
Merge pull request #202 from dewhisna/FixTwoWireDestructor
Fix the TwoWire destructor to use the array delete operator
2 parents 0938055 + a2c19ba commit 342f4d1

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
@@ -428,8 +428,8 @@ TwoWire::TwoWire(int bufferLength,
428428

429429
TwoWire::~TwoWire()
430430
{
431-
delete rxBuffer;
432-
delete txBuffer;
431+
delete[] rxBuffer;
432+
delete[] txBuffer;
433433
}
434434

435435
// Public Methods //////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)