glib r7790 - branches/glib-2-18/gio



Author: matthiasc
Date: Fri Jan  9 06:05:12 2009
New Revision: 7790
URL: http://svn.gnome.org/viewvc/glib?rev=7790&view=rev

Log:
Fix a leak


Modified:
   branches/glib-2-18/gio/ChangeLog
   branches/glib-2-18/gio/gunixmounts.c

Modified: branches/glib-2-18/gio/gunixmounts.c
==============================================================================
--- branches/glib-2-18/gio/gunixmounts.c	(original)
+++ branches/glib-2-18/gio/gunixmounts.c	Fri Jan  9 06:05:12 2009
@@ -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]