mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Release buffer/cache on SPIFFS.end() (#5651)
Releases the buffers allocated by the SPIFFS object when/if SPIFFS::end() is called.
This commit is contained in:
committed by
GitHub
parent
4d302f06c9
commit
c26102b34c
@ -154,6 +154,9 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SPIFFS_unmount(&_fs);
|
SPIFFS_unmount(&_fs);
|
||||||
|
_workBuf.reset(nullptr);
|
||||||
|
_fdsBuf.reset(nullptr);
|
||||||
|
_cacheBuf.reset(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool format() override
|
bool format() override
|
||||||
|
Reference in New Issue
Block a user