X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.ts;h=91fcaa401e5788d6e19cfccdd8758c3543606057;hb=3a507eb07003be3e6714e8a87fb397c09b401ce9;hp=81d95ece646131bf4eff9cbf498c1ed3df862a0e;hpb=ceda1e3041ff42b4aadc1245f6da26fd511b51ff;p=ldk-java diff --git a/ts/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.ts b/ts/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.ts index 81d95ece..91fcaa40 100644 --- a/ts/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.ts +++ b/ts/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.ts @@ -24,7 +24,10 @@ public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB number res_b = bindings.LDKC2Tuple_BlockHashChannelManagerZ_get_b(res); const res_b_hu_conv: ChannelManager = new ChannelManager(null, res_b); res_b_hu_conv.ptrs_to.add(this);; - TwoTuple res_conv = new TwoTuple(res_a, res_b_hu_conv); + TwoTuple res_conv = new TwoTuple(res_a, res_b_hu_conv, () -> { + bindings.C2Tuple_BlockHashChannelManagerZ_free(res); + }); + res_b_hu_conv.ptrs_to.add(res_conv); this.res = res_conv; } public Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_OK(TwoTuple res) {