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