Plug a leak
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Jul 2008 06:13:41 +0000 (06:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Jul 2008 06:13:41 +0000 (06:13 +0000)
svn path=/trunk/; revision=7191

gio/ChangeLog
gio/gunixvolumemonitor.c

index d33e3c1..61e9f33 100644 (file)
@@ -1,5 +1,12 @@
 2008-07-16  Matthias Clasen  <mclasen@redhat.com>
 
+       Bug 540616 – mem leak in filechooser button
+
+       * gunixvolumemonitor.c (get_mount_for_mount_path): Free
+       the mount entry. Reported by Chrisitan Persch
+
+2008-07-16  Matthias Clasen  <mclasen@redhat.com>
+
        * gfile.c: Small documentation fixes.
 
 2008-07-15  Matthias Clasen  <mclasen@redhat.com>
index d617f8d..cbf5b83 100644 (file)
@@ -154,6 +154,8 @@ get_mount_for_mount_path (const char *mount_path,
   /* TODO: Set mountable volume? */
   mount = _g_unix_mount_new (NULL, mount_entry, NULL);
 
+  g_unix_mount_free (mount_entry);
+
   return G_MOUNT (mount);
 }