diff options
author | David Zeuthen <davidz@redhat.com> | 2009-05-29 11:09:16 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-05-29 11:09:16 -0400 |
commit | 18409fc5c82ad728d5565733af2abed4393e197e (patch) | |
tree | 7c1c929c45ad59568f7fde5811494c9e8366fbe5 /src | |
parent | d9378b051747bef0483d55e8953624da8ab35f52 (diff) | |
download | polkit-18409fc5c82ad728d5565733af2abed4393e197e.tar.gz |
Only free hash table if it's not NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/polkit/polkitdetails.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/polkit/polkitdetails.c b/src/polkit/polkitdetails.c index b263194..bef0704 100644 --- a/src/polkit/polkitdetails.c +++ b/src/polkit/polkitdetails.c @@ -63,7 +63,8 @@ polkit_details_finalize (GObject *object) details = POLKIT_DETAILS (object); - g_hash_table_unref (details->hash); + if (details->hash != NULL) + g_hash_table_unref (details->hash); if (G_OBJECT_CLASS (polkit_details_parent_class)->finalize != NULL) G_OBJECT_CLASS (polkit_details_parent_class)->finalize (object); |