pidgin: 5f1a220f: Fix a small memory leak when failing to ...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Apr 28 02:45:38 EDT 2008


-----------------------------------------------------------------
Revision: 5f1a220f63d8e85758a94a2ed57381dc91b07eda
Ancestor: f3e133f1a010353a451f656cb3e38a746e84ff7d
Author: markdoliner at pidgin.im
Date: 2008-04-28T06:40:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5f1a220f63d8e85758a94a2ed57381dc91b07eda

Modified files:
        libpurple/protocols/jabber/chat.c

ChangeLog: 

Fix a small memory leak when failing to join a jabber conference
because you specified an invalid nickname

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/chat.c	b64f04003efc606418fa6f1ed98790f6b947a6c1
+++ libpurple/protocols/jabber/chat.c	922040aed6450ac224b540538183be49daf143d6
@@ -238,6 +238,8 @@ void jabber_chat_join(PurpleConnection *
 		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))


More information about the Commits mailing list