[gvfs/gdbus-core] gdbus: Handle NULL mount_info in create_proxy_for_file2()
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gdbus-core] gdbus: Handle NULL mount_info in create_proxy_for_file2()
- Date: Thu, 5 Apr 2012 14:23:32 +0000 (UTC)
commit 458716dadb7bf46984fbabea9b1991d7915b6976
Author: Tomas Bzatek <tbzatek redhat com>
Date: Thu Apr 5 16:21:43 2012 +0200
gdbus: Handle NULL mount_info in create_proxy_for_file2()
client/gdaemonfile.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 9716b49..043b3e5 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -445,7 +445,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]