gvfs r1527 - in trunk: . daemon
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1527 - in trunk: . daemon
- Date: Tue, 4 Mar 2008 13:51:57 +0000 (GMT)
Author: alexl
Date: Tue Mar 4 13:51:57 2008
New Revision: 1527
URL: http://svn.gnome.org/viewvc/gvfs?rev=1527&view=rev
Log:
2008-03-04 Alexander Larsson <alexl redhat com>
* daemon/gvfsbackendcomputer.c:
(mount_volume_from_drive):
Avoid crash when mounting drive
Fix leak.
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendcomputer.c
Modified: trunk/daemon/gvfsbackendcomputer.c
==============================================================================
--- trunk/daemon/gvfsbackendcomputer.c (original)
+++ trunk/daemon/gvfsbackendcomputer.c Tue Mar 4 13:51:57 2008
@@ -796,9 +796,9 @@
GVolume *volume;
volumes = g_drive_get_volumes (drive);
- volume = G_VOLUME (volumes->data);
- if (volume)
+ if (volumes)
{
+ volume = G_VOLUME (volumes->data);
g_volume_mount (volume,
0,
mount_op,
@@ -812,6 +812,9 @@
G_IO_ERROR_NOT_SUPPORTED,
_("Can't mount file"));
}
+
+ g_list_foreach (volumes, (GFunc)g_object_unref, NULL);
+ g_list_free (volumes);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]