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 @@ -548,6 +548,7 @@ class VariantImpl {
548548
549549 void freeVariant (Slot<VariantData> slot) {
550550 ARDUINOJSON_ASSERT (resources_ != nullptr );
551+ VariantImpl (slot.ptr (), resources_).clear ();
551552 resources_->freeVariant (slot);
552553 }
553554
You can’t perform that action at this time.
0 commit comments