[gnome-control-center] info: Use correct destructor for GUnixMountEntry



commit 6233c7d20f1043d1a9ee96108a03edc0096947e8
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 8 13:00:38 2011 +0100

    info: Use correct destructor for GUnixMountEntry

 panels/info/cc-info-panel.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index dc6b173..011161f 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -598,14 +598,14 @@ get_primary_disc_info (void)
       if (g_str_has_prefix (mount_path, "/media/")
           || g_str_has_prefix (mount_path, g_get_home_dir ()))
         {
-          g_free (mount);
+          g_unix_mount_free (mount);
           continue;
         }
 
       if (statfs (mount_path, &buf) < 0)
         {
           g_warning ("Unable to stat / filesystem: %s", g_strerror (errno));
-          g_free (mount);
+          g_unix_mount_free (mount);
           continue;
         }
       else
@@ -613,7 +613,7 @@ get_primary_disc_info (void)
           total_bytes += (guint64) buf.f_blocks * buf.f_bsize;
         }
 
-      g_free (mount);
+      g_unix_mount_free (mount);
     }
   g_list_free (points);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]