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



commit 60fab1aaf2cd5e581156a57e81f66fdfe7c5d67b
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 1d1c87a..dd314e6 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);
  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]