# HG changeset patch # User Evan Schoenberg # Date 1209589799 0 # Node ID 53bf3c21b79de4d414b09a862fd3196b4e19ab63 # Parent ebf8c74960bc65cd6ea9e6de51ce07fb02ce600c 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. diff -r ebf8c74960bc -r 53bf3c21b79d libpurple/protocols/jabber/chat.c --- 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)