summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-04-05 16:21:43 +0200
committerTomas Bzatek <tbzatek@redhat.com>2012-07-31 11:58:20 +0200
commit7ebe892e2c390963c322a09305f6aa5951913699 (patch)
tree6380dfc2dc2be24c092e888ca59ca1fd34c0322f /client
parentf55ffc1135840380c761f2cbb776e0253ed6305d (diff)
downloadgvfs-7ebe892e2c390963c322a09305f6aa5951913699.tar.gz
gdbus: Handle NULL mount_info in create_proxy_for_file2()
Diffstat (limited to 'client')
-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);