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