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