pidgin: 7670ce67: Remove redundant check (g_free does this...

markdoliner at pidgin.im markdoliner at pidgin.im
Fri May 4 03:40:22 EDT 2012


----------------------------------------------------------------------
Revision: 7670ce67bc63a5de6e08abc4b4903c12146c4790
Parent:   910f5b335b379782205ae24d4bc165e88898e9f0
Author:   markdoliner at pidgin.im
Date:     05/04/12 03:33:51
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7670ce67bc63a5de6e08abc4b4903c12146c4790

Changelog: 

Remove redundant check (g_free does this for us)

Changes against parent 910f5b335b379782205ae24d4bc165e88898e9f0

  patched  libpurple/protocols/msn/msg.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msg.c	f3c82185167ec7756f43622f6211604ae426ea9a
+++ libpurple/protocols/msn/msg.c	ef6f696f6feb56b4c7bb7f2629b37f4b7ae44eca
@@ -379,8 +379,7 @@ msn_message_set_bin_data(MsnMessage *msg
 	if (len > 1664)
 		len = 1664;
 
-	if (msg->body != NULL)
-		g_free(msg->body);
+	g_free(msg->body);
 
 	if (data != NULL && len > 0)
 	{


More information about the Commits mailing list