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