im.pidgin.pidgin: 897b40baad99c3a9cfda58938b2bc5894e546b5a

khc at pidgin.im khc at pidgin.im
Thu Dec 6 03:16:23 EST 2007


-----------------------------------------------------------------
Revision: 897b40baad99c3a9cfda58938b2bc5894e546b5a
Ancestor: c6ff9f9d34f8aa135d3cdf8b4363dddf6d578b3f
Author: khc at pidgin.im
Date: 2007-12-06T08:10:46
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/msn/session.c
        libpurple/protocols/msn/state.c
        libpurple/protocols/msn/user.c

ChangeLog: 

memleak fixes


-------------- next part --------------
============================================================
--- libpurple/protocols/msn/session.c	f5b07cd2be1029966b9bf8c8a733f25d146664bf
+++ libpurple/protocols/msn/session.c	1f88d11f445951bdf327e9a207bf9cf85f0be0d9
@@ -74,6 +74,7 @@ msn_session_destroy(MsnSession *session)
 
 	msn_userlist_destroy(session->userlist);
 
+	g_free(session->psm);
 	g_free(session->passport_info.t);
 	g_free(session->passport_info.p);
 	g_free(session->passport_info.kv);
============================================================
--- libpurple/protocols/msn/state.c	a9bbcfe9023ea8e27c8b36f4e9e479c57432cc2a
+++ libpurple/protocols/msn/state.c	46a8f9e65c37ac58ce781be735951285526d5898
@@ -238,13 +238,15 @@ msn_set_psm(MsnSession *session)
 	media = create_media_string(presence);
 	g_free(session->psm);
 	session->psm = msn_build_psm(statusline_stripped, media, NULL);
-	g_free(statusline_stripped);
 
 	payload = session->psm;
 	purple_debug_misc("MSNP14","Sending UUX command with payload: %s\n",payload);
 	trans = msn_transaction_new(cmdproc, "UUX", "%d", strlen(payload));
 	msn_transaction_set_payload(trans, payload, strlen(payload));
 	msn_cmdproc_send_trans(cmdproc, trans);
+
+	g_free(statusline_stripped);
+	g_free(media);
 }
 
 void
============================================================
--- libpurple/protocols/msn/user.c	8927663a437aa2165b3d426ebace1fc0b54515c2
+++ libpurple/protocols/msn/user.c	28a85a6f38c3751df16f82bbc0f95d139aa3af38
@@ -83,6 +83,7 @@ msn_user_destroy(MsnUser *user)
 	g_free(user->media.artist);
 	g_free(user->media.title);
 	g_free(user->media.album);
+	g_free(user->statusline);
 
 	g_free(user);
 }


More information about the Commits mailing list