diff options
author | David Zeuthen <davidz@redhat.com> | 2011-02-23 10:49:14 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-02-23 10:49:14 -0500 |
commit | 58f8c06caf7abec48e500e4a9669a1690aa01109 (patch) | |
tree | 4be9545b9e10cf8c1a11a87e400e81ea61d3739b /src | |
parent | 135d8a3311f9d40087294e33bd199045bc401dd8 (diff) | |
download | polkit-58f8c06caf7abec48e500e4a9669a1690aa01109.tar.gz |
Fix a memory leak
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/polkit/polkitactiondescription.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |