pidgin: ef76e324: jabber: if (foo) g_free(foo) -> g_free(f...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Mar 6 18:05:55 EST 2011


----------------------------------------------------------------------
Revision: ef76e324e615128214321c2c397788c3714c3e63
Parent:   bd1d7c0da0c2e7582408d8a1dd8a8d5f91b71c2a
Author:   darkrain42 at pidgin.im
Date:     03/06/11 17:38:45
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ef76e324e615128214321c2c397788c3714c3e63

Changelog: 

jabber: if (foo) g_free(foo) -> g_free(foo)

Changes against parent bd1d7c0da0c2e7582408d8a1dd8a8d5f91b71c2a

  patched  libpurple/protocols/jabber/jutil.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jutil.c	fe3eae71afce9ed53e3094a6198727fc910941bd
+++ libpurple/protocols/jabber/jutil.c	9fc4123aa40107476fdf19d2066be9592bd4c532
@@ -501,12 +501,9 @@ jabber_id_free(JabberID *jid)
 jabber_id_free(JabberID *jid)
 {
 	if(jid) {
-		if(jid->node)
-			g_free(jid->node);
-		if(jid->domain)
-			g_free(jid->domain);
-		if(jid->resource)
-			g_free(jid->resource);
+		g_free(jid->node);
+		g_free(jid->domain);
+		g_free(jid->resource);
 		g_free(jid);
 	}
 }


More information about the Commits mailing list