Bindings updates
[ldk-java] / src / main / java / org / ldk / structs / PaymentSendFailure.java
index 5db694eed14b84de99545c97f5b97c298f53ada4..48fd7a02a4faa9eec37adc2c24e49b4302354d21 100644 (file)
@@ -11,7 +11,14 @@ public class PaymentSendFailure extends CommonBase {
        @Override @SuppressWarnings("deprecation")
        protected void finalize() throws Throwable {
                super.finalize();
-               bindings.PaymentSendFailure_free(ptr);
+               if (ptr != 0) { bindings.PaymentSendFailure_free(ptr); }
+       }
+
+       public PaymentSendFailure clone() {
+               long ret = bindings.PaymentSendFailure_clone(this.ptr);
+               PaymentSendFailure ret_hu_conv = new PaymentSendFailure(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
        }
 
 }