File polkit-memleak.patch of Package polkit.import4439

From 58f8c06caf7abec48e500e4a9669a1690aa01109 Mon Sep 17 00:00:00 2001
From: David Zeuthen <davidz@redhat.com>
Date: Wed, 23 Feb 2011 15:49:14 +0000
Subject: Fix a memory leak

Signed-off-by: David Zeuthen <davidz@redhat.com>
---
diff --git a/src/polkit/polkitactiondescription.c b/src/polkit/polkitactiondescription.c
index 0391efd..4bd9604 100644
--- a/src/polkit/polkitactiondescription.c
+++ b/src/polkit/polkitactiondescription.c
@@ -316,6 +316,8 @@ polkit_action_description_new (const gchar                 *action_id,
   ret->implicit_any = implicit_any;
   ret->implicit_inactive = implicit_inactive;
   ret->implicit_active = implicit_active;
+  if (ret->annotations != NULL)
+    g_hash_table_unref (ret->annotations);
   ret->annotations = g_hash_table_ref (annotations);
   return ret;
 }
--
cgit v0.8.3-6-g21f6
openSUSE Build Service is sponsored by