[gvfs/gdbus-core] gdbus: Handle NULL mount_info in create_proxy_for_file2()



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]