summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2017-01-23 11:23:44 +0100
committerKalev Lember <klember@redhat.com>2017-01-27 10:25:41 +0100
commitf069d2db5bb4996cf04faf6b94069feb9ff5344b (patch)
tree5636de425bc1f4512879b9e224464803ee539747
parentc8777211378b38f6ac5fdc724965baad18d123b0 (diff)
downloadappstream-glib-f069d2db5bb4996cf04faf6b94069feb9ff5344b.tar.gz
trivial: profile: Free mutex resources in finalize()
-rw-r--r--libappstream-glib/as-profile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libappstream-glib/as-profile.c b/libappstream-glib/as-profile.c
index fa143a5..74d4f4f 100644
--- a/libappstream-glib/as-profile.c
+++ b/libappstream-glib/as-profile.c
@@ -466,6 +466,7 @@ as_profile_finalize (GObject *object)
g_ptr_array_foreach (profile->current, (GFunc) as_profile_item_free, NULL);
g_ptr_array_unref (profile->current);
g_ptr_array_unref (profile->archived);
+ g_mutex_clear (&profile->mutex);
G_OBJECT_CLASS (as_profile_parent_class)->finalize (object);
}