Provide human versions of trait interfaces, with a bunch of fixes to make it work
[ldk-java] / src / main / java / org / ldk / structs / HTLCOutputInCommitment.java
index c6e730a75d43fd079857d924644f3278909b1117..54745ba91a66e4f00c0c9c22081c79238776b836 100644 (file)
@@ -11,7 +11,7 @@ public class HTLCOutputInCommitment extends CommonBase {
        @Override @SuppressWarnings("deprecation")
        protected void finalize() throws Throwable {
                super.finalize();
-               bindings.HTLCOutputInCommitment_free(ptr);
+               if (ptr != 0) { bindings.HTLCOutputInCommitment_free(ptr); }
        }
 
        public static HTLCOutputInCommitment constructor_clone(HTLCOutputInCommitment orig) {