[gvfs] daemon: Do not unref NULL mount spec
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] daemon: Do not unref NULL mount spec
- Date: Mon, 14 Nov 2011 16:29:36 +0000 (UTC)
commit 200fe6ee11a2bdc244d7ee9335940079756fb66b
Author: Tomas Bzatek <tbzatek redhat com>
Date: Mon Nov 14 17:19:25 2011 +0100
daemon: Do not unref NULL mount spec
This is going away with GDBus port, but still...
daemon/mount.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/mount.c b/daemon/mount.c
index eb45b38..b016ac0 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -863,13 +863,14 @@ lookup_mount (DBusConnection *connection,
vfs_mount_to_dbus (mount, &iter);
}
}
+
+ g_mount_spec_unref (spec);
}
else
reply = dbus_message_new_error (message,
DBUS_ERROR_INVALID_ARGS,
"Invalid arguments");
- g_mount_spec_unref (spec);
if (reply != NULL)
{
dbus_connection_send (connection, reply, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]