Skip to content

Commit

Permalink
Minimizing code redundancy (#4695)
Browse files Browse the repository at this point in the history
String's destructor does the same as the 'invalidate' method.
  • Loading branch information
fabianoms authored and devyte committed Apr 28, 2018
1 parent 41a6470 commit 758b0bd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cores/esp8266/WString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ String::String(double value, unsigned char decimalPlaces) {
}

String::~String() {
if(buffer) {
free(buffer);
}
init();
invalidate();
}

// /*********************************************/
Expand Down

0 comments on commit 758b0bd

Please sign in to comment.