[anjuta] libanjuta: Simplify anjuta_util_glist_strings_free()
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: Simplify anjuta_util_glist_strings_free()
- Date: Thu, 18 Nov 2010 11:04:05 +0000 (UTC)
commit f0c604a5906546161faeb0b1aa4816772470fc59
Author: Johannes Schmid <jhs gnome org>
Date: Thu Nov 18 11:52:26 2010 +0100
libanjuta: Simplify anjuta_util_glist_strings_free()
libanjuta/anjuta-utils.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/libanjuta/anjuta-utils.c b/libanjuta/anjuta-utils.c
index 50be666..8cf9559 100644
--- a/libanjuta/anjuta-utils.c
+++ b/libanjuta/anjuta-utils.c
@@ -921,14 +921,7 @@ anjuta_util_glist_strings_sort (GList * list)
void
anjuta_util_glist_strings_free (GList * list)
{
- GList *node;
- node = list;
- while (node)
- {
- if (node->data)
- g_free (node->data);
- node = g_list_next (node);
- }
+ g_list_foreach (list, (GFunc) g_free, NULL);
g_list_free (list);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]