Use the new g_[s]list_free_full() instead of foreach() and free()

This commit is contained in:
Michael Natterer
2011-03-07 17:10:18 +01:00
parent 514a5548cd
commit fcfb7cf160
56 changed files with 97 additions and 187 deletions

View File

@ -75,9 +75,8 @@ changed_cb(GtkTreeSelection *selection, gpointer param)
command_execute (command);
g_list_foreach (selected_rows, (GFunc) gtk_tree_path_free, NULL);
g_list_free (selected_rows);
}
g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free);
}
}
static gboolean