info: Use correct destructor for GUnixMountEntry

This commit is contained in:
Bastien Nocera 2011-04-08 13:00:38 +01:00
parent 9d94d2dfae
commit 6233c7d20f

View file

@ -598,14 +598,14 @@ get_primary_disc_info (void)
if (g_str_has_prefix (mount_path, "/media/") if (g_str_has_prefix (mount_path, "/media/")
|| g_str_has_prefix (mount_path, g_get_home_dir ())) || g_str_has_prefix (mount_path, g_get_home_dir ()))
{ {
g_free (mount); g_unix_mount_free (mount);
continue; continue;
} }
if (statfs (mount_path, &buf) < 0) if (statfs (mount_path, &buf) < 0)
{ {
g_warning ("Unable to stat / filesystem: %s", g_strerror (errno)); g_warning ("Unable to stat / filesystem: %s", g_strerror (errno));
g_free (mount); g_unix_mount_free (mount);
continue; continue;
} }
else else
@ -613,7 +613,7 @@ get_primary_disc_info (void)
total_bytes += (guint64) buf.f_blocks * buf.f_bsize; total_bytes += (guint64) buf.f_blocks * buf.f_bsize;
} }
g_free (mount); g_unix_mount_free (mount);
} }
g_list_free (points); g_list_free (points);