X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FChannelUsage.cs;h=0da6b1e47fa20248f6aef9af1374a00a42b24ccc;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=53dfaa0d1c4de5b84023f8b7469da5afbbac9dc0;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/ChannelUsage.cs b/c_sharp/src/org/ldk/structs/ChannelUsage.cs index 53dfaa0d..0da6b1e4 100644 --- a/c_sharp/src/org/ldk/structs/ChannelUsage.cs +++ b/c_sharp/src/org/ldk/structs/ChannelUsage.cs @@ -72,6 +72,7 @@ public class ChannelUsage : CommonBase { bindings.ChannelUsage_set_effective_capacity(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); + if (this != null) { this.ptrs_to.AddLast(val); }; } /** @@ -85,6 +86,7 @@ public class ChannelUsage : CommonBase { if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUsage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUsage(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(effective_capacity_arg); }; return ret_hu_conv; }