Mercurial > pidgin.yaz
changeset 15537:b081c81a4dea
Get rid of some unnecessary string duping
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 04 Feb 2007 08:31:49 +0000 |
parents | 95bde83b6cfa |
children | 3138d800cb42 |
files | libpurple/protocols/jabber/message.c |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c Sun Feb 04 08:22:06 2007 +0000 +++ b/libpurple/protocols/jabber/message.c Sun Feb 04 08:31:49 2007 +0000 @@ -217,14 +217,12 @@ if(!jid) return; - components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); + components = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free); - g_hash_table_replace(components, g_strdup("room"), g_strdup(jid->node)); - g_hash_table_replace(components, g_strdup("server"), g_strdup(jid->domain)); - 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)); + g_hash_table_replace(components, "room", g_strdup(jid->node)); + g_hash_table_replace(components, "server", g_strdup(jid->domain)); + g_hash_table_replace(components, "handle", g_strdup(jm->js->user->node)); + g_hash_table_replace(components, "password", g_strdup(jm->password)); jabber_id_free(jid); serv_got_chat_invite(jm->js->gc, jm->to, jm->from, jm->body, components);