]> Pileus Git - ~andy/gtk/blobdiff - tests/testiconview.c
tests: Use g_list_free_full() convenience function
[~andy/gtk] / 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);
         }
     }