diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-05-26 13:41:07 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-05-26 14:53:30 +0200 |
commit | 6f6b0221bfb413d6eb1f9b84c2bd0ade9c3b4784 (patch) | |
tree | e8aefdc8599d56fef56acc5f834f0f94ee298182 | |
parent | 8613089e38f3440cbed8f215e6e8b245ef6d4385 (diff) |
Return non-floating ref from IBusConfigGConf::get_value
Both IBusConfigDConf::get_value and IBusConfigMemconf::get_value
return a non-floating reference, so we need to be consistent in the
gconf backend and also return a non-floating reference.
-rw-r--r-- | conf/gconf/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/gconf/config.c b/conf/gconf/config.c index 73007ca7..6c294649 100644 --- a/conf/gconf/config.c +++ b/conf/gconf/config.c @@ -290,7 +290,7 @@ ibus_config_gconf_get_value (IBusConfigService *config, GVariant *variant = _from_gconf_value (gv); gconf_value_free (gv); - return variant; + return g_variant_ref_sink (variant); } static GVariant * |