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/JabberG | |
parent | de300f88d5cd37d926d89a11a411b7c1a0ca8a30 (diff) |
fixes #1715 (by default account's destructor doesn't free network handle)
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 1 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.h | 1 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_ws.cpp | 6 |
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 = {};
|