ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.68,1.69


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.68,1.69
Date: Sat, 15 Mar 2003 22:33:46 -0500

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

Modified Files:
        msn.C 
Log Message:
Implement ~message() (maybe less memleaks ?)



Index: msn.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/msn.C,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- msn.C       15 Mar 2003 12:57:57 -0000      1.68
+++ msn.C       16 Mar 2003 03:33:44 -0000      1.69
@@ -685,7 +685,7 @@
        msg->header = NULL;
        msg->font = NULL;
        msg->colour = NULL;
-       msg->content = "text/plain; charset=UTF-8";
+       msg->content = strdup("text/plain; charset=UTF-8");
         if(strlen(mess)>1100)
         {
           char buf[1024];
@@ -698,6 +698,7 @@
        mlad = (eb_msn_local_account_data *)from->protocol_local_account_data;
 
        msn_send_IM(mlad->mc, account_to->handle, msg);
+
         delete msg;
 }
 
@@ -1133,7 +1134,6 @@
 void eb_msn_send_chat_room_message( eb_chat_room * room, gchar * mess )
 {
        message * msg=new message;
-       msg->header=NULL;
        char *tmp = StrToUtf8(mess);
         if(strlen(mess)>1100)
         {
@@ -1151,8 +1151,7 @@
         msnconn * conn=(msnconn *)room->protocol_local_chat_room_data;
 
         msn_send_IM(conn, NULL, msg); // simple, isn't it?
-       g_free(msg->body);
-        msg->body=NULL;
+
         delete msg;
 
         eb_chat_room_show_message(room, room->local_user->handle, mess);





reply via email to

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