diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-09-27 09:48:20 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-09-30 09:27:43 +0200 |
commit | 3c63e8c0ddedba6610dabf06c34eaa72469e7e2c (patch) | |
tree | 23f3b072c4e18b553b0f64db995a6d9264d49d78 | |
parent | 020fa7de344d9f10136ae1a3cb9bf6baa868218d (diff) | |
download | libgsystem-3c63e8c0ddedba6610dabf06c34eaa72469e7e2c.tar.gz |
gs_file_get_path_cached: Unlock mutex on error
https://bugzilla.gnome.org/show_bug.cgi?id=708824
-rw-r--r-- | gsystem-file-utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gsystem-file-utils.c b/gsystem-file-utils.c index aef76e9..0be3e4d 100644 --- a/gsystem-file-utils.c +++ b/gsystem-file-utils.c @@ -809,7 +809,10 @@ gs_file_get_path_cached (GFile *file) else path = g_file_get_path (file); if (path == NULL) - return NULL; + { + G_UNLOCK (pathname_cache); + return NULL; + } g_object_set_qdata_full ((GObject*)file, _file_path_quark, (char*)path, (GDestroyNotify)g_free); } |