summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-09-14 13:30:08 +0100
committerRichard Hughes <richard@hughsie.com>2016-09-14 13:30:08 +0100
commit00748671c01c2cc903b2103ff6fe2e79cd8f7ffe (patch)
tree50bd0cdec2e991ff28413f172d5d0d7606b7a497
parent793ed55702bdc6efea0d1526012e7bf34728e3df (diff)
downloadappstream-glib-00748671c01c2cc903b2103ff6fe2e79cd8f7ffe.tar.gz
trivial: Make as_profile_dump() threadsafe
-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 87a1f83..c3e402e 100644
--- a/libappstream-glib/as-profile.c
+++ b/libappstream-glib/as-profile.c
@@ -311,6 +311,7 @@ as_profile_dump (AsProfile *profile)
gdouble scale;
guint bar_offset;
guint bar_length;
+ g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&profile->mutex);
g_return_if_fail (AS_IS_PROFILE (profile));