[gnome-settings-daemon/automounter] automount: use g_list_free_full() where appropriate
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/automounter] automount: use g_list_free_full() where appropriate
- Date: Wed, 24 Nov 2010 17:54:03 +0000 (UTC)
commit aa1fb801286f92386c883563941d1ce011495cc1
Author: Tomas Bzatek <tbzatek redhat com>
Date: Wed Nov 24 18:45:13 2010 +0100
automount: use g_list_free_full() where appropriate
plugins/automount/gsd-automount-manager.c | 3 +--
plugins/automount/nautilus-autorun.c | 3 +--
plugins/automount/nautilus-open-with-dialog.c | 3 +--
3 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/plugins/automount/gsd-automount-manager.c b/plugins/automount/gsd-automount-manager.c
index 7d4ebaf..6ee1507 100644
--- a/plugins/automount/gsd-automount-manager.c
+++ b/plugins/automount/gsd-automount-manager.c
@@ -86,8 +86,7 @@ automount_all_volumes (GsdAutomountManager *manager)
/* pass NULL as GMountOperation to avoid user interaction */
g_volume_mount (volume, 0, NULL, NULL, startup_volume_mount_cb, NULL);
}
- g_list_foreach (volumes, (GFunc) g_object_unref, NULL);
- g_list_free (volumes);
+ g_list_free_full (volumes, g_object_unref);
}
}
diff --git a/plugins/automount/nautilus-autorun.c b/plugins/automount/nautilus-autorun.c
index da9f2c3..eed336d 100644
--- a/plugins/automount/nautilus-autorun.c
+++ b/plugins/automount/nautilus-autorun.c
@@ -697,8 +697,7 @@ nautilus_autorun_prepare_combo_box (GtkWidget *combo_box,
if (default_app_info != NULL) {
g_object_unref (default_app_info);
}
- g_list_foreach (app_info_list, (GFunc) g_object_unref, NULL);
- g_list_free (app_info_list);
+ g_list_free_full (app_info_list, g_object_unref);
gtk_combo_box_set_model (GTK_COMBO_BOX (combo_box), GTK_TREE_MODEL (list_store));
g_object_unref (list_store);
diff --git a/plugins/automount/nautilus-open-with-dialog.c b/plugins/automount/nautilus-open-with-dialog.c
index 4543227..fe2d24e 100644
--- a/plugins/automount/nautilus-open-with-dialog.c
+++ b/plugins/automount/nautilus-open-with-dialog.c
@@ -259,8 +259,7 @@ add_or_find_application (NautilusOpenWithDialog *dialog)
}
if (applications != NULL) {
- g_list_foreach (applications, (GFunc) g_object_unref, NULL);
- g_list_free (applications);
+ g_list_free_full (applications, g_object_unref);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]