changeset 27530:459e17946686

Break the 'if' onto two lines and don't bother calling jabber_id_free() if jid is null
author Mark Doliner <mark@kingant.net>
date Mon, 13 Jul 2009 18:44:28 +0000
parents 6a4cab3959b7
children 8138b07b6bc6
files libpurple/protocols/jabber/message.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Mon Jul 13 17:01:52 2009 +0000
+++ b/libpurple/protocols/jabber/message.c	Mon Jul 13 18:44:28 2009 +0000
@@ -644,10 +644,10 @@
 
 							if (jid) {
 								chat = jabber_chat_find(js, jid->node, jid->domain);
-								if (chat) conv = chat->conv;
+								if (chat)
+									conv = chat->conv;
+								jabber_id_free(jid);
 							}
-
-							jabber_id_free(jid);
 						} else if (jm->type == JABBER_MESSAGE_NORMAL ||
 						           jm->type == JABBER_MESSAGE_CHAT) {
 							conv =