]> Pileus Git - ~andy/gtk/commitdiff
tests: Use g_list_free_full() convenience function
authorJavier Jardón <jjardon@gnome.org>
Mon, 2 Jan 2012 03:09:00 +0000 (04:09 +0100)
committerJavier Jardón <jjardon@gnome.org>
Thu, 5 Jan 2012 03:22:42 +0000 (04:22 +0100)
tests/testiconview.c

index 053b7636e89b28568271ede6994182e80f853989..b926497513a04b1989fbe5ee4001540bdb8b9d2b 100644 (file)
@@ -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);
         }
     }