[Xfce4-commits] [xfce/xfconf] 05/05: Don't free up GValue as its ownership is taken by a cache item.

noreply at xfce.org noreply at xfce.org
Fri Jun 23 11:07:38 CEST 2017


This is an automated email from the git hooks/post-receive script.

a   l   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfconf.

commit e259ba58fc857c853d5b64024fb1d22d372c53f7
Author: Ali Abdallah <ali at xfce.org>
Date:   Fri Jun 23 11:06:33 2017 +0200

    Don't free up GValue as its ownership is taken by a cache item.
---
 xfconf/xfconf-cache.c | 15 +++++++--------
 1 file 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,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list