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



commit 9989ebd6f3060532ce6f51eb74c77e625276a728
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 ef021a0..f457f82 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]