mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
delete the ZT1_Node object when calling Java_com_zerotierone_sdk_Node_node_1delete
Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
parent
321b67c73c
commit
6187a91f4c
@ -297,6 +297,9 @@ JNIEXPORT void JNICALL Java_com_zerotierone_sdk_Node_node_1delete
|
||||
{
|
||||
JniRef *ref = found->second;
|
||||
nodeMap.erase(found);
|
||||
|
||||
ZT1_Node_delete(ref->node);
|
||||
|
||||
delete ref;
|
||||
ref = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user