changeset 22754:8c3f6126759c

Fix a small memory leak when failing to join a jabber conference because you specified an invalid nickname
author Mark Doliner <mark@kingant.net>
date Mon, 28 Apr 2008 06:40:48 +0000
parents 3b14215d2ca4
children 01e0ddc7e040 5c65b5df9bcc 46ab2e2171b8
files libpurple/protocols/jabber/chat.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/chat.c	Mon Apr 28 06:27:11 2008 +0000
+++ b/libpurple/protocols/jabber/chat.c	Mon Apr 28 06:40:48 2008 +0000
@@ -238,6 +238,8 @@
 		char *buf = g_strdup_printf(_("%s is not a valid room handle"), handle);
 		purple_notify_error(gc, _("Invalid Room Handle"),
 				_("Invalid Room Handle"), buf);
+		g_free(buf);
+		return;
 	}
 
 	if(jabber_chat_find(js, room, server))