[gtk+] tests: Use g_list_free_full() convenience function
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Use g_list_free_full() convenience function
- Date: Thu, 5 Jan 2012 03:23:45 +0000 (UTC)
commit 08a2b910e5c1ba7e941197394af54e3a66090e2d
Author: Javier JardÃn <jjardon gnome org>
Date: Mon Jan 2 04:09:00 2012 +0100
tests: Use g_list_free_full() convenience function
tests/testiconview.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/testiconview.c b/tests/testiconview.c
index 053b763..b926497 100644
--- a/tests/testiconview.c
+++ b/tests/testiconview.c
@@ -351,8 +351,7 @@ do_popup_menu (GtkWidget *icon_list,
if (list)
{
path = (GtkTreePath*)list->data;
- g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL);
- g_list_free (list);
+ g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]