Commit 58f8c06c authored by David Zeuthen's avatar David Zeuthen
Browse files

Fix a memory leak


Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent 135d8a33
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment