[gvfs/wip/goa: 1/3] gdaemonmount: Check for a NULL GMountOperation when unmounting
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/goa: 1/3] gdaemonmount: Check for a NULL GMountOperation when unmounting
- Date: Tue, 23 Oct 2012 19:56:52 +0000 (UTC)
commit 87d3bf53b57febcde46b8f951528e27dbe322822
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Oct 22 15:07:04 2012 +0200
gdaemonmount: Check for a NULL GMountOperation when unmounting
https://bugzilla.gnome.org/show_bug.cgi?id=686637
client/gdaemonmount.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index 53f22b5..ca77648 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -330,8 +330,9 @@ g_daemon_mount_unmount_with_operation (GMount *mount,
data = g_new0 (AsyncProxyCreate, 1);
data->mount = g_object_ref (mount);
data->mount_info = daemon_mount->mount_info;
- data->mount_operation = g_object_ref (mount_operation);
data->flags = flags;
+ if (mount_operation)
+ data->mount_operation = g_object_ref (mount_operation);
if (cancellable)
data->cancellable = g_object_ref (cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]