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