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