Sun, 26 Oct 2003 04:51:09 +0000
[gaim-migrate @ 7920]
fix crash on jabber invite
| src/protocols/jabber/message.c | file | annotate | diff | comparison | revisions |
--- a/src/protocols/jabber/message.c Sun Oct 26 00:27:46 2003 +0000 +++ b/src/protocols/jabber/message.c Sun Oct 26 04:51:09 2003 +0000 @@ -198,10 +198,12 @@ components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - g_hash_table_replace(components, g_strdup("room"), jid->node); - g_hash_table_replace(components, g_strdup("server"), jid->node); - g_hash_table_replace(components, g_strdup("handle"), jm->js->user->node); - g_hash_table_replace(components, g_strdup("password"), jm->password); + g_hash_table_replace(components, g_strdup("room"), g_strdup(jid->node)); + g_hash_table_replace(components, g_strdup("server"), g_strdup(jid->node)); + g_hash_table_replace(components, g_strdup("handle"), + g_strdup(jm->js->user->node)); + g_hash_table_replace(components, g_strdup("password"), + g_strdup(jm->password)); jabber_id_free(jid); serv_got_chat_invite(jm->js->gc, jm->to, jm->from, jm->body, components);