changeset 19833:54f287047d4e

[gaim-migrate @ 17138] fix the bug of oim delete committed by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sun, 03 Sep 2006 14:42:38 +0000
parents ef06a1fb425e
children 2fe6a673f12a
files src/protocols/msn/command.c src/protocols/msn/group.c src/protocols/msn/oim.c src/protocols/msn/soap.h
diffstat 4 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/command.c	Thu Aug 31 12:38:50 2006 +0000
+++ b/src/protocols/msn/command.c	Sun Sep 03 14:42:38 2006 +0000
@@ -24,6 +24,10 @@
 #include "msn.h"
 #include "command.h"
 
+/*local Function prototype*/
+int msn_get_payload_position(char *str);
+int msn_set_payload_len(MsnCommand *cmd);
+
 static gboolean
 is_num(char *str)
 {
--- a/src/protocols/msn/group.c	Thu Aug 31 12:38:50 2006 +0000
+++ b/src/protocols/msn/group.c	Sun Sep 03 14:42:38 2006 +0000
@@ -76,7 +76,7 @@
 char*
 msn_group_get_id(const MsnGroup *group)
 {
-	g_return_val_if_fail(group != NULL, -1);
+	g_return_val_if_fail(group != NULL, NULL);
 
 	return group->id;
 }
--- a/src/protocols/msn/oim.c	Thu Aug 31 12:38:50 2006 +0000
+++ b/src/protocols/msn/oim.c	Sun Sep 03 14:42:38 2006 +0000
@@ -425,6 +425,7 @@
 		msg_id = oim->oim_list->data;
 		msn_oim_post_delete_msg(oim,msg_id);
 		oim->oim_list = g_list_remove(oim->oim_list, oim->oim_list->data);
+		g_free(msg_id);
 	}
 
 	g_free(passport);
@@ -503,7 +504,7 @@
 		oim->oim_list = g_list_append(oim->oim_list,msgid);
 		msn_oim_post_single_get_msg(oim,msgid);
 		g_free(passport);
-		g_free(msgid);
+//		g_free(msgid);
 		g_free(rTime);
 		g_free(nickname);
 	}
--- a/src/protocols/msn/soap.h	Thu Aug 31 12:38:50 2006 +0000
+++ b/src/protocols/msn/soap.h	Sun Sep 03 14:42:38 2006 +0000
@@ -123,6 +123,7 @@
 /*init a soap conneciton */
 void msn_soap_init(MsnSoapConn *soapconn,char * host,int ssl,GaimSslInputFunction connect_cb,GaimSslErrorFunction error_cb);
 void msn_soap_connect(MsnSoapConn *soapconn);
+void msn_soap_close(MsnSoapConn *soapconn);
 
 /*write to soap*/
 void msn_soap_write(MsnSoapConn * soapconn, char *write_buf, GaimInputFunction written_cb);