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 6
6
7
7
#include < ArduinoJson/Memory/ResourceManager.hpp>
8
8
#include < ArduinoJson/Polyfills/alias_cast.hpp>
9
- #include < ArduinoJson/Variant/VariantImpl.hpp>
10
9
11
10
ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE
12
11
@@ -21,7 +20,6 @@ inline Slot<VariantData> ResourceManager::allocVariant() {
21
20
}
22
21
23
22
inline void ResourceManager::freeVariant (Slot<VariantData> slot) {
24
- VariantImpl (slot.ptr (), this ).clear ();
25
23
variantPools_.freeSlot (slot);
26
24
}
27
25
Original file line number Diff line number Diff line change @@ -548,6 +548,7 @@ class VariantImpl {
548
548
549
549
void freeVariant (Slot<VariantData> slot) {
550
550
ARDUINOJSON_ASSERT (resources_ != nullptr );
551
+ VariantImpl (slot.ptr (), resources_).clear ();
551
552
resources_->freeVariant (slot);
552
553
}
553
554
You can’t perform that action at this time.
0 commit comments