glib r7742 - in trunk: . gio
- From: ryanl svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7742 - in trunk: . gio
- Date: Fri, 12 Dec 2008 20:03:36 +0000 (UTC)
Author: ryanl
Date: Fri Dec 12 20:03:36 2008
New Revision: 7742
URL: http://svn.gnome.org/viewvc/glib?rev=7742&view=rev
Log:
2008-12-12 Ryan Lortie <desrt desrt ca>
* gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when
multiple mount entries match the requested path
Modified:
trunk/ChangeLog
trunk/gio/gunixmounts.c
Modified: trunk/gio/gunixmounts.c
==============================================================================
--- trunk/gio/gunixmounts.c (original)
+++ trunk/gio/gunixmounts.c Fri Dec 12 20:03:36 2008
@@ -1054,7 +1054,7 @@
{
mount_entry = l->data;
- if (strcmp (mount_path, mount_entry->mount_path) == 0)
+ if (!found && strcmp (mount_path, mount_entry->mount_path) == 0)
found = mount_entry;
else
g_unix_mount_free (mount_entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]