summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2013-08-07 21:17:55 +0200
committerJonny Lamb <jonny.lamb@collabora.co.uk>2013-08-07 21:17:55 +0200
commit41b4a4783635fd7851d0c5e6e440b33f14e20457 (patch)
treee80851a135d1c65cddd455f9399bab79765f4bb9
parent1d8cd54b4b9c4dabbc36b0a9d9758e08a65de937 (diff)
roomlist-channel: don't let a GValue take a string it doesn't own
-rw-r--r--src/kindling-roomlist-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kindling-roomlist-channel.c b/src/kindling-roomlist-channel.c
index 9f3693b..a36d861 100644
--- a/src/kindling-roomlist-channel.c
+++ b/src/kindling-roomlist-channel.c
@@ -152,7 +152,7 @@ _room_list_callback (SoupSession *session, SoupMessage *msg, gpointer user_data)
keys = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL);
g_value_init (&handle_name, G_TYPE_STRING);
- g_value_take_string(&handle_name, room_name);
+ g_value_set_string(&handle_name, room_name);
g_hash_table_insert(keys, "handle-name", &handle_name);
g_value_init(&room, TP_STRUCT_TYPE_ROOM_INFO);