Try hard to release memory

This commit is contained in:
Blaz Kristan 2024-01-24 20:49:22 +01:00
parent d5f54c240a
commit 445a89ba6e

View File

@ -1455,6 +1455,7 @@ void WS2812FX::resetSegments() {
segment seg = Segment(0, _length);
#endif
_segments.push_back(seg);
_segments.shrink_to_fit(); // just in case ...
_mainSegment = 0;
}