diff options
author | Determinant <[email protected]> | 2019-06-16 23:24:49 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-16 23:24:49 -0400 |
commit | 74e4246565ba5814a92ed9f84b13b17226f219d1 (patch) | |
tree | 161a15482225dce9a3940e70bfd3b5e1a50cf497 /src/network.cpp | |
parent | 77a765023bff4fa3d41001bdc1de9d106e35f348 (diff) |
do not free the moved pointer for C API; misc changes
Diffstat (limited to 'src/network.cpp')
-rw-r--r-- | src/network.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network.cpp b/src/network.cpp index ef16bed..a1666ec 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -47,7 +47,7 @@ void msgnetwork_config_queue_capacity(msgnetwork_config_t *self, size_t cap) { void msgnetwork_send_msg_by_move(msgnetwork_t *self, msg_t *_moved_msg, const msgnetwork_conn_t *conn) { self->_send_msg(std::move(*_moved_msg), *conn); - delete _moved_msg; + //delete _moved_msg; } msgnetwork_conn_t *msgnetwork_connect(msgnetwork_t *self, const netaddr_t *addr, SalticidaeCError *cerror) { @@ -204,14 +204,14 @@ void peernetwork_conn_free(const peernetwork_conn_t *self) { delete self; } void peernetwork_send_msg_by_move(peernetwork_t *self, msg_t * _moved_msg, const netaddr_t *paddr) { self->_send_msg(std::move(*_moved_msg), *paddr); - delete _moved_msg; + //delete _moved_msg; } void peernetwork_multicast_msg_by_move(peernetwork_t *self, msg_t *_moved_msg, const netaddr_array_t *paddrs) { self->_multicast_msg(std::move(*_moved_msg), *paddrs); - delete _moved_msg; + //delete _moved_msg; } void peernetwork_listen(peernetwork_t *self, const netaddr_t *listen_addr, SalticidaeCError *cerror) { |