summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gsystem-file-utils.c5
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);
}