Mercurial > pidgin.yaz
changeset 23110:53bf3c21b79d
The key and value need to be g_stdup()'d before adding to the hash table
since g_free will be called on them when it is destroyed. Thanks to Mark
for catching this.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Wed, 30 Apr 2008 21:09:59 +0000 |
parents | ebf8c74960bc |
children | 718a9c287839 |
files | libpurple/protocols/jabber/chat.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/chat.c Wed Apr 30 16:50:06 2008 +0000 +++ b/libpurple/protocols/jabber/chat.c Wed Apr 30 21:09:59 2008 +0000 @@ -201,7 +201,7 @@ static void insert_in_hash_table(gpointer key, gpointer value, gpointer user_data) { GHashTable *hash_table = (GHashTable *)user_data; - g_hash_table_insert(hash_table, key, value); + g_hash_table_insert(hash_table, g_strdup(key), g_strdup(value)); } void jabber_chat_join(PurpleConnection *gc, GHashTable *data)