# HG changeset patch # User Paul Aurich # Date 1271617838 0 # Node ID 8217f783463e23947371483d931e662eabc4d16a # Parent 211afed0548bac4a3fb99d75f1932faa8dc6fe86 jabber: --leaks diff -r 211afed0548b -r 8217f783463e libpurple/protocols/jabber/jabber.c --- 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; }