Commit b81ff409 authored by Kalev Lember's avatar Kalev Lember
Browse files

Add missing locking to gs_app_get_url()

https://bugzilla.redhat.com/show_bug.cgi?id=1699269
parent b3af732e
......@@ -2176,7 +2176,9 @@ const gchar *
gs_app_get_url (GsApp *app, AsUrlKind kind)
{
GsAppPrivate *priv = gs_app_get_instance_private (app);
g_autoptr(GMutexLocker) locker = NULL;
g_return_val_if_fail (GS_IS_APP (app), NULL);
locker = g_mutex_locker_new (&priv->mutex);
return g_hash_table_lookup (priv->urls, as_url_kind_to_string (kind));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment