summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-08 23:41:43 +0200
committerGeorge Hazan <ghazan@miranda.im>2019-01-08 23:41:43 +0200
commita6eae725381b5329011e4dc8e582ad3db59ba059 (patch)
tree93af474d8c6290f6546cf65e9113e6de08cba430 /src
parentde300f88d5cd37d926d89a11a411b7c1a0ca8a30 (diff)
fixes #1715 (by default account's destructor doesn't free network handle)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/proto_utils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/proto_utils.cpp b/src/mir_app/src/proto_utils.cpp
index e1f3d803c3..d97d8f5396 100644
--- a/src/mir_app/src/proto_utils.cpp
+++ b/src/mir_app/src/proto_utils.cpp
@@ -170,6 +170,9 @@ PROTO_INTERFACE::PROTO_INTERFACE(const char *pszModuleName, const wchar_t *ptszU
PROTO_INTERFACE::~PROTO_INTERFACE()
{
+ if (m_hNetlibUser)
+ Netlib_CloseHandle(m_hNetlibUser);
+
mir_free(m_szModuleName);
mir_free(m_tszUserName);