summaryrefslogtreecommitdiff
path: root/xfconf
diff options
context:
space:
mode:
authorAli Abdallah <ali@xfce.org>2017-06-23 11:06:33 +0200
committerAli Abdallah <ali@xfce.org>2017-06-23 11:06:33 +0200
commite259ba58fc857c853d5b64024fb1d22d372c53f7 (patch)
tree1808fb72e40c7c7a880f75120cdc513822a23053 /xfconf
parentad01da2d136b240d33bcc23f1782744b497d9ad5 (diff)
downloadxfconf-e259ba58fc857c853d5b64024fb1d22d372c53f7.tar.gz
Don't free up GValue as its ownership is taken by a cache item.
Diffstat (limited to 'xfconf')
-rw-r--r--xfconf/xfconf-cache.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c
index 1923263..48c820d 100644
--- a/xfconf/xfconf-cache.c
+++ b/xfconf/xfconf-cache.c
@@ -152,9 +152,9 @@ typedef struct
GCancellable *cancellable;
- /**
+ /**
* Variant to be send on the wire
- * Used in xfconf_cache_old_item_end_call
+ * Used in xfconf_cache_old_item_end_call
* to end an already started call
**/
GVariant *variant;
@@ -383,7 +383,7 @@ xfconf_cache_init(XfconfCache *cache)
{
GDBusProxy *gproxy = _xfconf_get_gdbus_proxy();
- cache->g_signal_id = g_signal_connect(gproxy, "g-signal",
+ cache->g_signal_id = g_signal_connect(gproxy, "g-signal",
G_CALLBACK(xfconf_cache_proxy_signal_received_cb), cache);
cache->properties = g_tree_new_full((GCompareDataFunc)strcmp, NULL,
@@ -528,7 +528,6 @@ xfconf_cache_handle_property_changed (XfconfCache *cache, GVariant *parameters)
g_signal_emit(G_OBJECT(cache), signals[SIG_PROPERTY_CHANGED], 0,
cache->channel_name, property, prop_value);
}
- g_value_unset (prop_value);
g_variant_unref(prop_variant);
}
else {
@@ -591,7 +590,7 @@ xfconf_cache_set_property_reply_handler(GDBusProxy *proxy,
gpointer user_data)
{
XfconfCache *cache;
- XfconfCacheOldItem *old_item = NULL;
+ XfconfCacheOldItem *old_item = NULL;
XfconfCacheItem *item;
GError *error = NULL;
gboolean result;
@@ -761,7 +760,7 @@ xfconf_cache_lookup_locked(XfconfCache *cache,
g_tree_insert(cache->properties, g_strdup(property), item);
g_variant_unref (variant);
/* TODO: check tree for evictions */
- } else
+ } else
g_propagate_error(error, tmp_error);
}
@@ -840,7 +839,7 @@ xfconf_cache_set(XfconfCache *cache,
if(G_LIKELY(g_dbus_error_is_remote_error (tmp_error)))
dbus_error_name = g_dbus_error_get_remote_error (tmp_error);
-
+
if(g_strcmp0(dbus_error_name, "org.xfce.Xfconf.Error.PropertyNotFound") != 0
&& g_strcmp0(dbus_error_name, "org.xfce.Xfconf.Error.ChannelNotFound") != 0)
{
@@ -891,7 +890,7 @@ xfconf_cache_set(XfconfCache *cache,
if (val) {
variant = g_variant_new_variant (val);
- xfconf_exported_call_set_property ((XfconfExported *)proxy,
+ xfconf_exported_call_set_property ((XfconfExported *)proxy,
cache->channel_name,
property,
variant,