diff options
author | Mikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com> | 2011-10-07 13:40:58 +0200 |
---|---|---|
committer | Mikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com> | 2011-10-07 13:40:58 +0200 |
commit | 1e1878c64ae2cd43c70d2dd8eb45ef719417a05e (patch) | |
tree | 0b897ff6a73e8e01d338fb3b26ae3d6f7da9d469 /src | |
parent | fc60960bf243cf771b3da83858d9bc3615f174bb (diff) | |
download | lightdm-1e1878c64ae2cd43c70d2dd8eb45ef719417a05e.tar.gz |
Sink floating ref on variants in session_set_console_kit_parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 3 |
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 * |