summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com>2011-10-07 13:40:58 +0200
committerMikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com>2011-10-07 13:40:58 +0200
commit1e1878c64ae2cd43c70d2dd8eb45ef719417a05e (patch)
tree0b897ff6a73e8e01d338fb3b26ae3d6f7da9d469 /src
parentfc60960bf243cf771b3da83858d9bc3615f174bb (diff)
downloadlightdm-1e1878c64ae2cd43c70d2dd8eb45ef719417a05e.tar.gz
Sink floating ref on variants in session_set_console_kit_parameter
Diffstat (limited to 'src')
-rw-r--r--src/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 7899a395..cea573d6 100644
--- a/src/session.c
+++ b/src/session.c
@@ -187,7 +187,8 @@ session_set_console_kit_parameter (Session *session, const gchar *name, GVariant
g_return_if_fail (session != NULL);
g_return_if_fail (name != NULL);
- g_hash_table_insert (session->priv->console_kit_parameters, g_strdup (name), value);
+ g_hash_table_insert (session->priv->console_kit_parameters,
+ g_strdup (name), g_variant_ref_sink (value));
}
const gchar *