Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
8395:09083081643a | 8396:387ba791d5f9 |
---|---|
274 muc = TRUE; | 274 muc = TRUE; |
275 if((z = xmlnode_get_child(y, "status"))) { | 275 if((z = xmlnode_get_child(y, "status"))) { |
276 const char *code = xmlnode_get_attrib(z, "code"); | 276 const char *code = xmlnode_get_attrib(z, "code"); |
277 if(code && !strcmp(code, "201")) { | 277 if(code && !strcmp(code, "201")) { |
278 chat = jabber_chat_find(js, jid->node, jid->domain); | 278 chat = jabber_chat_find(js, jid->node, jid->domain); |
279 gaim_request_action(js->gc, _("Create New Room"), | 279 chat->config_dialog_type = GAIM_REQUEST_ACTION; |
280 chat->config_dialog_handle = | |
281 gaim_request_action(js->gc, _("Create New Room"), | |
280 _("Create New Room"), | 282 _("Create New Room"), |
281 _("You are creating a new room. Would you like to " | 283 _("You are creating a new room. Would you like to " |
282 "configure it, or accept the default settings?"), | 284 "configure it, or accept the default settings?"), |
283 1, chat, 2, _("Configure Room"), | 285 1, chat, 2, _("Configure Room"), |
284 G_CALLBACK(jabber_chat_request_room_configure), | 286 G_CALLBACK(jabber_chat_request_room_configure), |