File tree 3 files changed +1
-6
lines changed
3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ ARDUINO 1.5.5 BETA
19
19
* avr: Fixed wrong extended fuses on Arduino Yún when using external programmer
20
20
* avr: Added yun variant with LED_BUILTIN definition
21
21
* avr: Refactored Mega* variants definitions in boards.txt (Kristian Sloth Lauszus)
22
+ * avr: Removed File object destructor. In order to free memory allocated by a File object the safest way is to call its close() method
22
23
23
24
ARDUINO 1.5.4 BETA 2013.09.10
24
25
Original file line number Diff line number Diff line change @@ -43,11 +43,6 @@ File::File(void) {
43
43
// Serial.print("Created empty file object");
44
44
}
45
45
46
- File::~File (void ) {
47
- close ();
48
- // Serial.print("Deleted file object");
49
- }
50
-
51
46
// returns a pointer to the file name
52
47
char *File::name (void ) {
53
48
return _name;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ class File : public Stream {
31
31
public:
32
32
File (SdFile f, const char *name); // wraps an underlying SdFile
33
33
File (void ); // 'empty' constructor
34
- ~File (void ); // destructor
35
34
virtual size_t write (uint8_t );
36
35
virtual size_t write (const uint8_t *buf, size_t size);
37
36
virtual int read ();
You can’t perform that action at this time.
0 commit comments