diff src/protocols/jabber/presence.c @ 8396:387ba791d5f9

[gaim-migrate @ 9125] fix a crash in jabber chats when you leave the chat before closing the configuration dialog, and plug a memleak. Thanks deryni for pointing the crash out committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 04 Mar 2004 17:07:56 +0000
parents a6e8ef48c7a4
children c13a4913a071
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c	Thu Mar 04 05:47:41 2004 +0000
+++ b/src/protocols/jabber/presence.c	Thu Mar 04 17:07:56 2004 +0000
@@ -276,7 +276,9 @@
 					const char *code = xmlnode_get_attrib(z, "code");
 					if(code && !strcmp(code, "201")) {
 						chat = jabber_chat_find(js, jid->node, jid->domain);
-						gaim_request_action(js->gc, _("Create New Room"),
+						chat->config_dialog_type = GAIM_REQUEST_ACTION;
+						chat->config_dialog_handle =
+							gaim_request_action(js->gc, _("Create New Room"),
 								_("Create New Room"),
 								_("You are creating a new room.  Would you like to "
 									"configure it, or accept the default settings?"),