[gdl/gnome-3-0] Use g_slist_free_full
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl/gnome-3-0] Use g_slist_free_full
- Date: Wed, 4 May 2011 08:30:31 +0000 (UTC)
commit f2a094ddf8991f5a5960d16d3a5bff67e1f6466f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed May 4 10:29:36 2011 +0200
Use g_slist_free_full
gdl/gdl-switcher.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gdl/gdl-switcher.c b/gdl/gdl-switcher.c
index 623d437..266fe62 100644
--- a/gdl/gdl-switcher.c
+++ b/gdl/gdl-switcher.c
@@ -668,9 +668,8 @@ gdl_switcher_dispose (GObject *object)
}
g_object_unref (gconf_client);
#endif
-
- g_slist_foreach (priv->buttons, (GFunc) button_free, NULL);
- g_slist_free (priv->buttons);
+
+ g_slist_free_full (priv->buttons, (GDestroyNotify)button_free);
priv->buttons = NULL;
G_OBJECT_CLASS (gdl_switcher_parent_class)->dispose (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]