Plug a leak

svn path=/trunk/; revision=7191
This commit is contained in:
Matthias Clasen 2008-07-16 06:13:41 +00:00
parent d17b52cbdb
commit 6dba7df4b1
2 changed files with 9 additions and 0 deletions

View 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> 2008-07-16 Matthias Clasen <mclasen@redhat.com>
* gfile.c: Small documentation fixes. * gfile.c: Small documentation fixes.

View File

@ -154,6 +154,8 @@ get_mount_for_mount_path (const char *mount_path,
/* TODO: Set mountable volume? */ /* TODO: Set mountable volume? */
mount = _g_unix_mount_new (NULL, mount_entry, NULL); mount = _g_unix_mount_new (NULL, mount_entry, NULL);
g_unix_mount_free (mount_entry);
return G_MOUNT (mount); return G_MOUNT (mount);
} }