summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/gdaemonfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index bc0afbe3..7ae26177 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -446,7 +446,8 @@ create_proxy_for_file2 (GFile *file1,
*connection_out = connection;
out:
- g_mount_info_unref (mount_info1);
+ if (mount_info1)
+ g_mount_info_unref (mount_info1);
if (mount_info2)
g_mount_info_unref (mount_info2);