From 58f043e0f3e1551206331efc00cdf47c4c885c10 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Tue, 27 Jul 2010 22:59:18 +0000 Subject: [PATCH] added more String examples --- cores/arduino/WString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index 5693e11..b4b6a38 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -37,7 +37,7 @@ class String String( const unsigned int, const int base=10 ); String( const long, const int base=10 ); String( const unsigned long, const int base=10 ); - ~String() { free(_buffer); } + ~String() { free(_buffer); _length = _capacity = 0;} //added _length = _capacity = 0; // operators const String & operator = ( const String &rhs );