changeset 31755:b44e3c2e83e1

jabber: if (foo) g_free(foo) -> g_free(foo)
author Paul Aurich <paul@darkrain42.org>
date Sun, 06 Mar 2011 22:38:45 +0000
parents b3b2e7b6455c
children 9d8a47ca14a1
files libpurple/protocols/jabber/jutil.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jutil.c	Sun Mar 06 11:28:05 2011 +0000
+++ b/libpurple/protocols/jabber/jutil.c	Sun Mar 06 22:38:45 2011 +0000
@@ -501,12 +501,9 @@
 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);
 	}
 }