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