summaryrefslogtreecommitdiff
path: root/protocols/JabberG
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 /protocols/JabberG
parentde300f88d5cd37d926d89a11a411b7c1a0ca8a30 (diff)
fixes #1715 (by default account's destructor doesn't free network handle)
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.cpp1
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.h1
-rw-r--r--protocols/JabberG/src/jabber_ws.cpp6
3 files changed, 0 insertions, 8 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index b7fa4b4426..47a1c0cdb3 100755
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -221,7 +221,6 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) :
CJabberProto::~CJabberProto()
{
- WsUninit();
ConsoleUninit();
GlobalMenuUninit();
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h
index 9e76f6ef9b..a7ba7cbb75 100755
--- a/protocols/JabberG/src/jabber_proto.h
+++ b/protocols/JabberG/src/jabber_proto.h
@@ -844,7 +844,6 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
HNETLIBCONN WsConnect(char* host, WORD port);
BOOL WsInit(void);
- void WsUninit(void);
int WsSend(HNETLIBCONN s, char* data, int datalen, int flags);
int WsRecv(HNETLIBCONN s, char* data, long datalen, int flags);
diff --git a/protocols/JabberG/src/jabber_ws.cpp b/protocols/JabberG/src/jabber_ws.cpp
index 0da42e54dd..228bb5f5c9 100644
--- a/protocols/JabberG/src/jabber_ws.cpp
+++ b/protocols/JabberG/src/jabber_ws.cpp
@@ -39,12 +39,6 @@ BOOL CJabberProto::WsInit(void)
return m_hNetlibUser != nullptr;
}
-void CJabberProto::WsUninit(void)
-{
- Netlib_CloseHandle(m_hNetlibUser);
- m_hNetlibUser = nullptr;
-}
-
HNETLIBCONN CJabberProto::WsConnect(char* host, WORD port)
{
NETLIBOPENCONNECTION nloc = {};