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