summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2016-12-30 11:02:51 +0100
committerKalev Lember <klember@redhat.com>2016-12-30 11:02:51 +0100
commit2163c7c20f224abbd693f8128e98384ffac082eb (patch)
treeff5cee748ffc0a69c78cc26019cff74cca4c6c72
parent959972c57e1b73a8ffd60e5719f8e10301a2ab3c (diff)
downloadappstream-glib-2163c7c20f224abbd693f8128e98384ffac082eb.tar.gz
trivial: Add missing locking
-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 9fb3a14..fa143a5 100644
--- a/libappstream-glib/as-profile.c
+++ b/libappstream-glib/as-profile.c
@@ -91,6 +91,7 @@ void
as_profile_task_set_threaded (AsProfileTask *ptask, gboolean threaded)
{
AsProfileItem *item;
+ g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&ptask->profile->mutex);
item = as_profile_item_find (ptask->profile->current, ptask->id);
if (item == NULL)
return;