mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-15 21:58:21 +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:
@ -297,6 +297,9 @@ JNIEXPORT void JNICALL Java_com_zerotierone_sdk_Node_node_1delete
|
|||||||
{
|
{
|
||||||
JniRef *ref = found->second;
|
JniRef *ref = found->second;
|
||||||
nodeMap.erase(found);
|
nodeMap.erase(found);
|
||||||
|
|
||||||
|
ZT1_Node_delete(ref->node);
|
||||||
|
|
||||||
delete ref;
|
delete ref;
|
||||||
ref = NULL;
|
ref = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user