changeset 6817:8af705eb064e

[gaim-migrate @ 7358] this might fix a jabber segfault committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 12 Sep 2003 19:30:48 +0000
parents 5aeba37b303c
children 9ffa5b5a8131
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Fri Sep 12 19:04:52 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Fri Sep 12 19:30:48 2003 +0000
@@ -1538,7 +1538,6 @@
 				jc->state = JCS_ACTIVE;
 			} else {
 				/* no, we're not supposed to be. */
-				g_free(msg);
 				return;
 			}
 		}
@@ -1581,7 +1580,7 @@
 
 static void jabber_handlepresence(gjconn gjc, jpacket p)
 {
-	char *to, *from, *type;
+	char *from, *type;
 	GaimBuddy *b = NULL;
 	gaim_jid gjid;
 	char *buddy;
@@ -1593,7 +1592,6 @@
 	int priority = 0;
 	struct jabber_buddy_data *jbd;
 
-	to = xmlnode_get_attrib(p->x, "to");
 	from = xmlnode_get_attrib(p->x, "from");
 	type = xmlnode_get_attrib(p->x, "type");