[prev in list] [next in list] [prev in thread] [next in thread] 

List:       licq-cvs
Subject:    [Licq-cvs] msn/src
From:       Jon Keating <emostar () users ! sourceforge ! net>
Date:       2004-12-18 13:47:14
Message-ID: E1CfevS-0008Nc-IQ () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/licq/msn/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32139

Modified Files:
	msn-sb.cpp msn.cpp 
Log Message:
Some fixes and minor additions.
Fix a major memory leak :\


Index: msn-sb.cpp
===================================================================
RCS file: /cvsroot/licq/msn/src/msn-sb.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- msn-sb.cpp	10 Dec 2004 04:32:11 -0000	1.3
+++ msn-sb.cpp	18 Dec 2004 13:47:11 -0000	1.4
@@ -176,19 +176,20 @@
       // closed the window and connection
       string strUser = packet->GetParameter();
       gLog.Info("%sConnection with %s closed.\n", L_MSNxSTR, strUser.c_str());
-      m_pDaemon->PushPluginSignal(new
-        CICQSignal(SIGNAL_CONVOxLEAVE, 0, strdup(strUser.c_str()), MSN_PPID, nSock));
-        
+
       ICQUser *u = gUserManager.FetchUser(const_cast<char *>(strUser.c_str()), MSN_PPID, LOCK_W);
       if (u)
       {
-        int nSock = u->SocketDesc(ICQ_CHNxNONE);
+        int nThisSock = u->SocketDesc(ICQ_CHNxNONE);
         u->ClearSocketDesc(ICQ_CHNxNONE);
         gUserManager.DropUser(u);
-        INetSocket *s = gSocketMan.FetchSocket(nSock);
+        INetSocket *s = gSocketMan.FetchSocket(nThisSock);
         gSocketMan.DropSocket(s);  
-        gSocketMan.CloseSocket(nSock);
+        gSocketMan.CloseSocket(nThisSock);
       }
+
+      m_pDaemon->PushPluginSignal(new
+        CICQSignal(SIGNAL_CONVOxLEAVE, 0, strdup(strUser.c_str()), MSN_PPID, nSock));
     }
   
     // Get the next packet

Index: msn.cpp
===================================================================
RCS file: /cvsroot/licq/msn/src/msn.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- msn.cpp	26 Nov 2004 04:17:24 -0000	1.42
+++ msn.cpp	18 Dec 2004 13:47:11 -0000	1.43
@@ -463,11 +463,19 @@
 
     case PROTOxSENDxREFUSExAUTH:
     {
-//      CRefuseAuthSignal *sig = static_cast<CRefuseAuthSignal *>(s);
+      CRefuseAuthSignal *sig = static_cast<CRefuseAuthSignal *>(s);
+      break;
+    }
+
+    case PROTOxREQUESTxINFO:
+    {
+      CRequestInfo *sig = static_cast<CRequestInfo *>(s);
       break;
     }
 
     default:
       break;  //Do nothing now...
   }
+
+  delete s;
 }



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Licq-cvs mailing list
Licq-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/licq-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic