projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Provide human versions of trait interfaces, with a bunch of fixes to make it work
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
NodeInfo.java
diff --git
a/src/main/java/org/ldk/structs/NodeInfo.java
b/src/main/java/org/ldk/structs/NodeInfo.java
index bc45360944282cfc299970df8066c17e5d8d03ea..1916d9ec1e7e3464f38e77b44505c18bf5c33f8d 100644
(file)
--- a/
src/main/java/org/ldk/structs/NodeInfo.java
+++ b/
src/main/java/org/ldk/structs/NodeInfo.java
@@
-11,7
+11,7
@@
public class NodeInfo extends CommonBase {
@Override @SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
super.finalize();
- bindings.NodeInfo_free(ptr);
+ if (ptr != 0) { bindings.NodeInfo_free(ptr); }
}
public void set_channels(long[] val) {