ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.39,1.40


From: Philip S Tellis <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.39,1.40
Date: Fri, 21 Mar 2003 08:05:54 -0500

Update of /cvsroot/ayttm/ayttm/modules/msn2/libmsn2
In directory subversions:/tmp/cvs-serv19755/modules/msn2/libmsn2

Modified Files:
        msn_core.C 
Log Message:
fix some memory leaks in ft

Index: msn_core.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.C,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- msn_core.C  21 Mar 2003 10:00:18 -0000      1.39
+++ msn_core.C  21 Mar 2003 13:05:52 -0000      1.40
@@ -1368,8 +1368,8 @@
           // OK, now we lose control, but the next round of the polling loop 
will
           // say that the socket is writable, and then the fun starts...
           ext_filetrans_progress(auth->inv, "Sending data", 0, 0);
-         delete [] args;
         }
+       delete [] args;
       } else {
              
         // just pumping data now
@@ -1401,13 +1401,16 @@
            if (poll(&pin, 1, 0)==1) {
                int numargs;
                char **args =msn_read_line(conn->sock, &numargs);
+               /* TODO Check if args is NULL */
                if (!strcmp(args[0],"CCL")) {
                        /* remote cancelled reception */
                        ext_filetrans_failed(auth->inv, 0, "Remote user 
cancelled");
                        msn_del_from_llist(auth->inv->conn->invitations_out, 
auth->inv);
                        msn_clean_up(conn);
+                       delete [] args;
                        return;
                }
+               delete [] args;
     
            }
 #endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]