pidgin: 9d391cf5: It doesn't seem like we use this kv valu...

qulogic at pidgin.im qulogic at pidgin.im
Thu Dec 2 01:35:50 EST 2010


----------------------------------------------------------------------
Revision: 9d391cf5dbda8fdfd4f3427c13b679720fbccffa
Parent:   a7adefeac6a854f260f68566d4e46488e99d0d6b
Author:   qulogic at pidgin.im
Date:     12/02/10 00:16:27
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9d391cf5dbda8fdfd4f3427c13b679720fbccffa

Changelog: 

It doesn't seem like we use this kv value, so might as well save the
memory for it.

Changes against parent a7adefeac6a854f260f68566d4e46488e99d0d6b

  patched  libpurple/protocols/msn/notification.c
  patched  libpurple/protocols/msn/session.c
  patched  libpurple/protocols/msn/session.h

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	4e8e91c92020854698658a490ccb2916eeaf64df
+++ libpurple/protocols/msn/notification.c	5a39f1d359e101c46352fac9063a74a8d57b3645
@@ -1942,12 +1942,6 @@ profile_msg(MsnCmdProc *cmdproc, MsnMess
 		/* This isn't an official message. */
 		return;
 
-	if ((value = msn_message_get_header_value(msg, "kv")) != NULL)
-	{
-		g_free(session->passport_info.kv);
-		session->passport_info.kv = g_strdup(value);
-	}
-
 	if ((value = msn_message_get_header_value(msg, "sid")) != NULL)
 	{
 		g_free(session->passport_info.sid);
============================================================
--- libpurple/protocols/msn/session.c	c8f58b1707a48fdca8ce8c551d533f320e81d301
+++ libpurple/protocols/msn/session.c	f21ffa937790de366180459758a4a245615dc5a5
@@ -103,7 +103,6 @@ msn_session_destroy(MsnSession *session)
 	g_free(session->blocked_text);
 #endif
 
-	g_free(session->passport_info.kv);
 	g_free(session->passport_info.sid);
 	g_free(session->passport_info.mspauth);
 	g_free(session->passport_info.client_ip);
============================================================
--- libpurple/protocols/msn/session.h	789250b6da917b6d9d65335ff02b952ac12c57ed
+++ libpurple/protocols/msn/session.h	c16860de8fd7e1b5013cfd543844df0dbaeef31b
@@ -105,7 +105,6 @@ struct _MsnSession
 
 	struct
 	{
-		char *kv;
 		char *sid;
 		char *mspauth;
 		unsigned long sl;


More information about the Commits mailing list