From 3f2c71401e3e0751bc632f891b53e2fbeb44c398 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 26 Oct 2015 17:39:59 +0300 Subject: thumbnail: Fix a code path where the mutex is never unlocked ported from https://git.gnome.org/browse/gnome-desktop/commit/?id=5b28350d3229d36d7c64084e52f5a40ee5903723 --- libmate-desktop/mate-desktop-thumbnail.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libmate-desktop/mate-desktop-thumbnail.c b/libmate-desktop/mate-desktop-thumbnail.c index 0178389..9b5272d 100644 --- a/libmate-desktop/mate-desktop-thumbnail.c +++ b/libmate-desktop/mate-desktop-thumbnail.c @@ -763,10 +763,11 @@ external_thumbnailers_disabled_changed_cb (GSettings *setting g_mutex_lock (&priv->lock); - if (priv->disabled) - return; - g_strfreev (priv->disabled_types); - priv->disabled_types = g_settings_get_strv (priv->settings, "disable"); + if (!priv->disabled) + { + g_strfreev (priv->disabled_types); + priv->disabled_types = g_settings_get_strv (priv->settings, "disable"); + } g_mutex_unlock (&priv->lock); } -- cgit v1.2.1