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:
Grant Limberg 2015-04-22 19:29:45 -07:00
parent 321b67c73c
commit 6187a91f4c

View File

@ -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;
}