diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-08 23:41:43 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-08 23:41:43 +0200 |
commit | a6eae725381b5329011e4dc8e582ad3db59ba059 (patch) | |
tree | 93af474d8c6290f6546cf65e9113e6de08cba430 /protocols/Tox | |
parent | de300f88d5cd37d926d89a11a411b7c1a0ca8a30 (diff) |
fixes #1715 (by default account's destructor doesn't free network handle)
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_netlib.cpp | 6 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 1 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/protocols/Tox/src/tox_netlib.cpp b/protocols/Tox/src/tox_netlib.cpp index ab76d7d815..0ba87ed391 100644 --- a/protocols/Tox/src/tox_netlib.cpp +++ b/protocols/Tox/src/tox_netlib.cpp @@ -13,9 +13,3 @@ void CToxProto::InitNetlib() debugLogA(__FUNCTION__":Setting protocol / module name to '%s'", m_szModuleName);
}
-
-void CToxProto::UninitNetlib()
-{
- Netlib_CloseHandle(m_hNetlibUser);
- m_hNetlibUser = nullptr;
-}
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index d46a26de5e..728168ff62 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -45,7 +45,6 @@ CToxProto::CToxProto(const char* protoName, const wchar_t* userName) CToxProto::~CToxProto()
{
DeleteTimerQueue(m_hTimerQueue);
- UninitNetlib();
}
void CToxProto::OnModulesLoaded()
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 02f02eeae9..bcd95434c0 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -121,7 +121,6 @@ private: // netlib
void InitNetlib();
- void UninitNetlib();
// icons
static HANDLE GetIconHandle(int iconId);
|