Bug 540616 – mem leak in filechooser button

* gunixvolumemonitor.c (get_mount_for_mount_path): Free
        the mount entry. Reported by Chrisitan Persch


svn path=/branches/glib-2-16/; revision=7212
This commit is contained in:
Matthias Clasen 2008-07-20 02:47:15 +00:00
parent 3362be91bd
commit a5ccc1fff1
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2008-07-19 Matthias Clasen <mclasen@redhat.com>
Merge from trunk:
Bug 540616 mem leak in filechooser button
* gunixvolumemonitor.c (get_mount_for_mount_path): Free
the mount entry. Reported by Chrisitan Persch
2008-07-01 Matthias Clasen <mclasen@redhat.com>
* === Released 2.16.4 ===

View File

@ -153,6 +153,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);
}