From dba2de61e7dbd290bb03441899c229d5aace1cb1 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 11 Dec 2017 18:33:37 +0000 Subject: levin_protocol_handler_async: call handler destroy function on dtor --- contrib/epee/include/net/levin_protocol_handler_async.h | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/epee/include/net') diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index 7ad6d198b..d13874f4e 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -97,6 +97,7 @@ public: async_protocol_handler_config():m_pcommands_handler(NULL), m_pcommands_handler_destroy(NULL), m_max_packet_size(LEVIN_DEFAULT_MAX_PACKET_SIZE) {} + ~async_protocol_handler_config() { set_handler(NULL, NULL); } void del_out_connections(size_t count); }; -- cgit v1.2.3