# HG changeset patch # User Ma Yuan # Date 1157294558 0 # Node ID 54f287047d4efbec85d4874353fc63eb5823bbc6 # Parent ef06a1fb425e8e2d193721bcc264729c96a409dd [gaim-migrate @ 17138] fix the bug of oim delete committed by MaYuan committer: Ethan Blanton diff -r ef06a1fb425e -r 54f287047d4e src/protocols/msn/command.c --- 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) { diff -r ef06a1fb425e -r 54f287047d4e src/protocols/msn/group.c --- 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; } diff -r ef06a1fb425e -r 54f287047d4e src/protocols/msn/oim.c --- 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); } diff -r ef06a1fb425e -r 54f287047d4e src/protocols/msn/soap.h --- 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);