changeset 25352:b68ac693ae2d

Don't leak a JabberBuddyAvatarUpdateURLInfo struct in the error case
author Paul Aurich <paul@darkrain42.org>
date Wed, 21 Jan 2009 17:56:07 +0000
parents 5dd25c58b65e
children 9195955395b6
files libpurple/protocols/jabber/useravatar.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/useravatar.c	Wed Jan 21 17:55:09 2009 +0000
+++ b/libpurple/protocols/jabber/useravatar.c	Wed Jan 21 17:56:07 2009 +0000
@@ -174,10 +174,12 @@
 		purple_debug(PURPLE_DEBUG_ERROR, "jabber",
 		             "do_buddy_avatar_update_fromurl got error \"%s\"",
 		             error_message);
-		return;
+		goto out;
 	}
 	
 	purple_buddy_icons_set_for_user(purple_connection_get_account(info->js->gc), info->from, (void*)url_text, len, info->id);
+
+out:
 	g_free(info->from);
 	g_free(info->id);
 	g_free(info);