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