PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Mon Oct 29 12:32:21 PDT 2007


 polkit-dbus/polkit-dbus.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4a157d2c3880bd23459918f9590417332ebc8d37
Author: David Zeuthen <davidz at redhat.com>
Date:   Mon Oct 29 15:30:36 2007 -0400

    use _destroy, not _unref for hash tables
    
    The latter is only in glib 2.10.
    
    Pointed out by Danny Kukawka <danny.kukawka at web.de>.

diff --git a/polkit-dbus/polkit-dbus.c b/polkit-dbus/polkit-dbus.c
index 5f8fe4f..087ea1f 100644
--- a/polkit-dbus/polkit-dbus.c
+++ b/polkit-dbus/polkit-dbus.c
@@ -1045,8 +1045,8 @@ polkit_tracker_unref (PolKitTracker *pk_tracker)
         pk_tracker->refcount--;
         if (pk_tracker->refcount > 0) 
                 return;
-        g_hash_table_unref (pk_tracker->dbus_name_to_caller);
-        g_hash_table_unref (pk_tracker->pid_start_time_to_caller);
+        g_hash_table_destroy (pk_tracker->dbus_name_to_caller);
+        g_hash_table_destroy (pk_tracker->pid_start_time_to_caller);
         dbus_connection_unref (pk_tracker->con);
         g_free (pk_tracker);
 }


More information about the hal-commit mailing list