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