Use g_hash_table_new_full instead of g_hash_table_new