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