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 d33e3c16751f236b64db2bbc18d24010ef3e3cc0..61e9f33265bd18ac2dd231af5a51a051dba36acd 100644 (file)
@@ -1,3 +1,10 @@
+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.
index d617f8d00d09797f851ad44bb838bc6838125da9..cbf5b8345701279628c8c80cbc7d63af367ff8be 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);
 }