bindings updates
[ldk-java] / src / main / java / org / ldk / structs / RoutingMessageHandler.java
index a4f5353dd237799770c820f8fd44fb54b7ee6033..8a50a54b4aeba579c6dcdb76fc91a75165181948 100644 (file)
@@ -146,7 +146,12 @@ public class RoutingMessageHandler extends CommonBase {
                        long arr_conv_63_c = bindings.LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(arr_conv_63);
                        ChannelUpdate arr_conv_63_c_hu_conv = new ChannelUpdate(null, arr_conv_63_c);
                        arr_conv_63_c_hu_conv.ptrs_to.add(this);;
-                       ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate> arr_conv_63_conv = new ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate>(arr_conv_63_a_hu_conv, arr_conv_63_b_hu_conv, arr_conv_63_c_hu_conv);
+                       ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate> arr_conv_63_conv = new ThreeTuple<ChannelAnnouncement, ChannelUpdate, ChannelUpdate>(arr_conv_63_a_hu_conv, arr_conv_63_b_hu_conv, arr_conv_63_c_hu_conv, () -> {
+                               bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(arr_conv_63);
+                       });
+                       arr_conv_63_a_hu_conv.ptrs_to.add(arr_conv_63_conv);
+                       arr_conv_63_b_hu_conv.ptrs_to.add(arr_conv_63_conv);
+                       arr_conv_63_c_hu_conv.ptrs_to.add(arr_conv_63_conv);
                        arr_conv_63_arr[l] = arr_conv_63_conv;
                }
                return arr_conv_63_arr;