aboutsummaryrefslogtreecommitdiff
path: root/confui/mesh_connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'confui/mesh_connector.cpp')
-rw-r--r--confui/mesh_connector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/confui/mesh_connector.cpp b/confui/mesh_connector.cpp
index d32855a..56069bd 100644
--- a/confui/mesh_connector.cpp
+++ b/confui/mesh_connector.cpp
@@ -119,7 +119,7 @@ void CDMeshConnector::remove_link(cd_link_t link_handle) {
printf("remove link[%d]\n", link_handle);
if (_links[link_handle] != nullptr)
free(_links[link_handle]);
- _links.erase(link_handle);
+ _links[link_handle] = nullptr;
return;
}
@@ -127,7 +127,7 @@ void CDMeshConnector::remove_node(cd_uid_t node_handle) {
printf("remove node[%d]\n", node_handle);
if (_nodes[node_handle] != nullptr)
free(_nodes[node_handle]);
- _nodes.erase(node_handle);
+ _nodes[node_handle] = nullptr;
return;
}