[Xfce4-commits] <xfconf:signal-bindings> Fix double free.

Nick Schermer noreply at xfce.org
Tue Nov 24 10:56:01 CET 2009


Updating branch refs/heads/signal-bindings
         to 07b9f6c8d929908690847599ef2555b49fb5b717 (commit)
       from b6c6b8f86fa695645e0df1faa19413a2dfd97c93 (commit)

commit 07b9f6c8d929908690847599ef2555b49fb5b717
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Nov 24 10:52:11 2009 +0100

    Fix double free.
    
    When leaving the reply handler xfconf should only remove
    the mutex lock and not free the item since we only looked
    it up from the hash table, it's not stolen yet.

 xfconf/xfconf-cache.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c
index f4e23f8..d7d8504 100644
--- a/xfconf/xfconf-cache.c
+++ b/xfconf/xfconf-cache.c
@@ -497,10 +497,9 @@ xfconf_cache_set_property_reply_handler(DBusGProxy *proxy,
         xfconf_cache_mutex_lock(&cache->cache_lock);
     }
 
-out:
     if(old_item)
         xfconf_cache_old_item_free(old_item);
-
+out:
     xfconf_cache_mutex_unlock(&cache->cache_lock);
 }
 



More information about the Xfce4-commits mailing list