[gnome-software/gnome-3-26] Add missing locking to gs_plugin_cache_remove()
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] Add missing locking to gs_plugin_cache_remove()
- Date: Mon, 8 Jan 2018 20:30:52 +0000 (UTC)
commit a6059076abcb12fc18178c6dc71b64ef4f8e924b
Author: Kalev Lember <klember redhat com>
Date: Tue Jan 2 22:05:36 2018 +0100
Add missing locking to gs_plugin_cache_remove()
lib/gs-plugin.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 0a14f43..d844c46 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -1496,6 +1496,7 @@ void
gs_plugin_cache_remove (GsPlugin *plugin, const gchar *key)
{
GsPluginPrivate *priv = gs_plugin_get_instance_private (plugin);
+ g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&priv->cache_mutex);
g_return_if_fail (GS_IS_PLUGIN (plugin));
g_return_if_fail (key != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]