diff libpurple/protocols/jabber/jabber.c @ 30166:8217f783463e

jabber: --leaks
author Paul Aurich <paul@darkrain42.org>
date Sun, 18 Apr 2010 19:10:38 +0000
parents 0f895633faeb
children 9134be6baaef
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Sat Apr 17 21:37:52 2010 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sun Apr 18 19:10:38 2010 +0000
@@ -842,6 +842,7 @@
 		purple_connection_error_reason(gc,
 			PURPLE_CONNECTION_ERROR_INVALID_SETTINGS,
 			_("Invalid XMPP ID"));
+		g_free(user);
 		/* Destroying the connection will free the JabberStream */
 		return NULL;
 	}
@@ -850,6 +851,7 @@
 		purple_connection_error_reason(gc,
 			PURPLE_CONNECTION_ERROR_INVALID_SETTINGS,
 			_("Invalid XMPP ID. Username portion must be set."));
+		g_free(user);
 		/* Destroying the connection will free the JabberStream */
 		return NULL;
 	}
@@ -858,6 +860,7 @@
 		purple_connection_error_reason(gc,
 			PURPLE_CONNECTION_ERROR_INVALID_SETTINGS,
 			_("Invalid XMPP ID. Domain must be set."));
+		g_free(user);
 		/* Destroying the connection will free the JabberStream */
 		return NULL;
 	}