Bindings updates
[ldk-java] / src / main / java / org / ldk / structs / Ping.java
index 3630dab0839fbcf943cc98e43702f39f4a7d3058..72815630a7af57f4964d7033f6b47077fc3c6c2e 100644 (file)
@@ -17,6 +17,7 @@ public class Ping extends CommonBase {
        public Ping clone() {
                long ret = bindings.Ping_clone(this.ptr);
                Ping ret_hu_conv = new Ping(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -41,6 +42,7 @@ public class Ping extends CommonBase {
        public static Ping constructor_new(short ponglen_arg, short byteslen_arg) {
                long ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
                Ping ret_hu_conv = new Ping(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }