PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Fri Oct 16 07:01:25 PDT 2009


 src/polkit/polkitauthority.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 3def7be16eb71376c26c5319faf669719dffec3c
Author: Alexander Sack <asac at ubuntu.com>
Date:   Thu Oct 15 19:16:57 2009 +0200

    Bug 24566 – Properly _ref authority in singleton constructor
    
    http://bugs.freedesktop.org/show_bug.cgi?id=24566
    
    Signed-off-by: David Zeuthen <davidz at redhat.com>

diff --git a/src/polkit/polkitauthority.c b/src/polkit/polkitauthority.c
index 1f89dfd..39b98e9 100644
--- a/src/polkit/polkitauthority.c
+++ b/src/polkit/polkitauthority.c
@@ -253,8 +253,10 @@ polkit_authority_class_init (PolkitAuthorityClass *klass)
 PolkitAuthority *
 polkit_authority_get (void)
 {
-  if (the_authority != NULL)
+  if (the_authority != NULL) {
+    g_object_ref (the_authority);
     goto out;
+  }
 
   the_authority = POLKIT_AUTHORITY (g_object_new (POLKIT_TYPE_AUTHORITY, NULL));
 


More information about the hal-commit mailing list