From 1b0236528ceec24b16d6ce91a188b2da240f1a7d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 5 Apr 2016 20:28:29 +0000 Subject: Gadu-Gadu: resource leak fixes, cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16590 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/core.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'protocols/Gadu-Gadu/src/core.cpp') diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index a73ffa447d..4f8816fd7e 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -892,7 +892,6 @@ retry: TCHAR id[32]; UIN2IDT(getDword(GG_KEY_UIN, 0), id); - DBVARIANT dbv; GCDEST gcd = { m_szModuleName, chat, GC_EVENT_MESSAGE }; GCEVENT gce = { sizeof(gce), &gcd }; gce.ptszUID = id; @@ -1268,7 +1267,7 @@ void GGPROTO::broadcastnewstatus(int newStatus) //////////////////////////////////////////////////////////// // When contact is deleted -int GGPROTO::contactdeleted(WPARAM hContact, LPARAM lParam) +int GGPROTO::contactdeleted(WPARAM hContact, LPARAM) { uin_t uin = (uin_t)getDword(hContact, GG_KEY_UIN, 0); @@ -1324,7 +1323,6 @@ static TCHAR* sttSettingToTchar( DBVARIANT* value ) int GGPROTO::dbsettingchanged(WPARAM hContact, LPARAM lParam) { DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING *) lParam; - char *szProto = NULL; #ifdef DEBUGMODE debugLogA("dbsettingchanged(): fired. szModule=%s szSetting=%s", cws->szModule, cws->szSetting); @@ -1403,7 +1401,7 @@ int GGPROTO::dbsettingchanged(WPARAM hContact, LPARAM lParam) //////////////////////////////////////////////////////////// // All users set offline - +// void GGPROTO::setalloffline() { debugLogA("setalloffline(): started. Setting buddies offline"); @@ -1424,7 +1422,7 @@ void GGPROTO::setalloffline() //////////////////////////////////////////////////////////// // All users set offline - +// void GGPROTO::notifyuser(MCONTACT hContact, int refresh) { uin_t uin; @@ -1519,7 +1517,7 @@ void GGPROTO::notifyall() //////////////////////////////////////////////////////////// // Get contact by uin - +// MCONTACT GGPROTO::getcontact(uin_t uin, int create, int inlist, TCHAR *szNick) { #ifdef DEBUGMODE @@ -1606,7 +1604,7 @@ MCONTACT GGPROTO::getcontact(uin_t uin, int create, int inlist, TCHAR *szNick) //////////////////////////////////////////////////////////// // Status conversion - +// int GGPROTO::status_m2gg(int status, int descr) { // check frends only @@ -1686,8 +1684,8 @@ int GGPROTO::status_gg2m(int status) //////////////////////////////////////////////////////////// // Called when contact status is changed - -void GGPROTO::changecontactstatus(uin_t uin, int status, const TCHAR *idescr, int time, uint32_t remote_ip, uint16_t remote_port, uint32_t version) +// +void GGPROTO::changecontactstatus(uin_t uin, int status, const TCHAR *idescr, int, uint32_t remote_ip, uint16_t remote_port, uint32_t version) { #ifdef DEBUGMODE debugLogA("changecontactstatus(): uin=%d status=%d", uin, status); -- cgit v1.2.3