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