[gnome-software] Add missing locking to gs_plugin_cache_remove()
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add missing locking to gs_plugin_cache_remove()
- Date: Tue, 2 Jan 2018 21:26:08 +0000 (UTC)
commit 84a27dc058b69efa7c38142021bd963e48c1aa2c
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 ec85b8e..01273f6 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]