From 2163c7c20f224abbd693f8128e98384ffac082eb Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 30 Dec 2016 11:02:51 +0100 Subject: trivial: Add missing locking --- libappstream-glib/as-profile.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.1