[gthumb] vfs: ignore null values
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] vfs: ignore null values
- Date: Sun, 25 Jan 2015 12:06:38 +0000 (UTC)
commit 85f91bedf455b499916810b99d625c65d1d0266b
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jan 7 13:06:09 2015 +0100
vfs: ignore null values
gthumb/gth-file-source-vfs.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-file-source-vfs.c b/gthumb/gth-file-source-vfs.c
index 9c64aa5..be93ac3 100644
--- a/gthumb/gth-file-source-vfs.c
+++ b/gthumb/gth-file-source-vfs.c
@@ -145,6 +145,10 @@ gth_file_source_vfs_get_entry_points (GthFileSource *file_source)
}
info = g_file_query_info (file, GFILE_BASIC_ATTRIBUTES ",access::*", G_FILE_QUERY_INFO_NONE,
NULL, NULL);
+ if (info == NULL) {
+ g_object_unref (file);
+ continue;
+ }
icon = g_mount_get_symbolic_icon (mount);
name = g_mount_get_name (mount);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]