gvfs <= 1.5.1 does not properly call the finalize function of backends,
due to a missing unref call. This causes the cleanup functions of the
libraries underlying the backends to not get called.

In case of the gphoto2 backend, this causes the kernel driver for dual
mode webcams (which have a kernel space webcam driver and a userspace
stillcam driver), to not get re-attached to the device when then the gvfs
mount gets unmounted.

This patch fixes this by adding a g_object_unref (job) to
g_vfs_daemon_initiate_mount, which is needed as g_vfs_daemon_queue_job
takes a reference itself.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
diff -up gvfs-1.5.1/daemon/gvfsdaemon.c~ gvfs-1.5.1/daemon/gvfsdaemon.c
--- gvfs-1.5.1/daemon/gvfsdaemon.c~	2009-11-18 13:14:51.000000000 +0100
+++ gvfs-1.5.1/daemon/gvfsdaemon.c	2010-01-06 11:19:38.000000000 +0100
@@ -1081,6 +1081,7 @@ g_vfs_daemon_initiate_mount (GVfsDaemon 
 
   job = g_vfs_job_mount_new (mount_spec, mount_source, is_automount, request, backend);
   g_vfs_daemon_queue_job (daemon, job);
+  g_object_unref (job);
 }
 
 /**
