X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUnsignedChannelUpdate.java;h=d9ca14447338eb2832baa589a4477c9c9c43a3ba;hb=aa0e2aade37133339f4113a0cd7465b111f0a0d0;hp=0fa6b1e55e12a27bc2cbc40aecf75c41226f34d7;hpb=e9808b32ca6552aa78fb7b8354c8900f038af0af;p=ldk-java diff --git a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java index 0fa6b1e5..d9ca1444 100644 --- a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java +++ b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java @@ -11,7 +11,7 @@ public class UnsignedChannelUpdate extends CommonBase { @Override @SuppressWarnings("deprecation") protected void finalize() throws Throwable { super.finalize(); - bindings.UnsignedChannelUpdate_free(ptr); + if (ptr != 0) { bindings.UnsignedChannelUpdate_free(ptr); } } public static UnsignedChannelUpdate constructor_clone(UnsignedChannelUpdate orig) {