diff options
author | Kalev Lember <klember@redhat.com> | 2016-12-30 11:02:51 +0100 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2016-12-30 11:02:51 +0100 |
commit | 2163c7c20f224abbd693f8128e98384ffac082eb (patch) | |
tree | ff5cee748ffc0a69c78cc26019cff74cca4c6c72 | |
parent | 959972c57e1b73a8ffd60e5719f8e10301a2ab3c (diff) | |
download | appstream-glib-2163c7c20f224abbd693f8128e98384ffac082eb.tar.gz |
trivial: Add missing locking
-rw-r--r-- | libappstream-glib/as-profile.c | 1 |
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; |