changeset 17602:9edab4849ba8

Fixed a leak in the PEP code that leaked PEP nodes when the server doesn't support this XEP.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 19 Jun 2007 23:54:52 +0000
parents 906ed2836a04
children 7a3a66c6530a
files libpurple/protocols/jabber/pep.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/pep.c	Tue Jun 19 23:34:16 2007 +0000
+++ b/libpurple/protocols/jabber/pep.c	Tue Jun 19 23:54:52 2007 +0000
@@ -108,8 +108,11 @@
 void jabber_pep_publish(JabberStream *js, xmlnode *publish) {
 	JabberIq *iq;
 	
-	if(js->pep != TRUE) /* ignore when there's no PEP support on the server */
+	if(js->pep != TRUE) {
+		/* ignore when there's no PEP support on the server */
+		xmlnode_free(publish);
 		return;
+	}
 	
 	iq = jabber_iq_new(js, JABBER_IQ_SET);