File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 66
77#include < ArduinoJson/Memory/ResourceManager.hpp>
88#include < ArduinoJson/Polyfills/alias_cast.hpp>
9- #include < ArduinoJson/Variant/VariantImpl.hpp>
109
1110ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE
1211
@@ -21,7 +20,6 @@ inline Slot<VariantData> ResourceManager::allocVariant() {
2120}
2221
2322inline void ResourceManager::freeVariant (Slot<VariantData> slot) {
24- VariantImpl (slot.ptr (), this ).clear ();
2523 variantPools_.freeSlot (slot);
2624}
2725
Original file line number Diff line number Diff line change @@ -516,6 +516,7 @@ class VariantImpl {
516516
517517 void freeVariant (Slot<VariantData> slot) {
518518 ARDUINOJSON_ASSERT (resources_ != nullptr );
519+ VariantImpl (slot.ptr (), resources_).clear ();
519520 resources_->freeVariant (slot);
520521 }
521522
You can’t perform that action at this time.
0 commit comments