diff --git a/GenC.fu b/GenC.fu index 13a6f036..48b70ce8 100644 --- a/GenC.fu +++ b/GenC.fu @@ -811,6 +811,7 @@ public class GenC : GenCCpp switch (klass.Class.Id) { case FuId.None: case FuId.ArrayPtrClass: + case FuId.JsonElementClass: if (klass is FuDynamicPtrType) { this.SharedRelease = true; Write("FuShared_Release"); diff --git a/libfut.cpp b/libfut.cpp index 9f3649b0..b70c96cf 100644 --- a/libfut.cpp +++ b/libfut.cpp @@ -9707,6 +9707,7 @@ bool GenC::writeDestructMethodName(const FuClassType * klass) switch (klass->class_->id) { case FuId::none: case FuId::arrayPtrClass: + case FuId::jsonElementClass: if (dynamic_cast(klass)) { this->sharedRelease = true; write("FuShared_Release"); diff --git a/libfut.cs b/libfut.cs index c2dbc7a1..4c2d82dd 100644 --- a/libfut.cs +++ b/libfut.cs @@ -10014,6 +10014,7 @@ bool WriteDestructMethodName(FuClassType klass) switch (klass.Class.Id) { case FuId.None: case FuId.ArrayPtrClass: + case FuId.JsonElementClass: if (klass is FuDynamicPtrType) { this.SharedRelease = true; Write("FuShared_Release"); diff --git a/libfut.js b/libfut.js index ecea42b3..600ff1b5 100644 --- a/libfut.js +++ b/libfut.js @@ -10359,6 +10359,7 @@ export class GenC extends GenCCpp switch (klass.class.id) { case FuId.NONE: case FuId.ARRAY_PTR_CLASS: + case FuId.JSON_ELEMENT_CLASS: if (klass instanceof FuDynamicPtrType) { this.#sharedRelease = true; this.write("FuShared_Release");