X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.ts;fp=ts%2Fstructs%2FResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.ts;h=c563f8489511c3ff868020ffea162c483b34f1ab;hb=3a507eb07003be3e6714e8a87fb397c09b401ce9;hp=5b2d6c20ce77faf5a071e9a3c859369332c2ad02;hpb=ceda1e3041ff42b4aadc1245f6da26fd511b51ff;p=ldk-java diff --git a/ts/structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.ts b/ts/structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.ts index 5b2d6c20..c563f848 100644 --- a/ts/structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.ts +++ b/ts/structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.ts @@ -24,7 +24,10 @@ public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ extends CommonB number res_b = bindings.LDKC2Tuple_BlockHashChannelMonitorZ_get_b(res); const res_b_hu_conv: ChannelMonitor = new ChannelMonitor(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_BlockHashChannelMonitorZ_free(res); + }); + res_b_hu_conv.ptrs_to.add(res_conv); this.res = res_conv; } public Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_OK(TwoTuple res) {