brasero r1451 - in trunk: . src



Author: philippr
Date: Fri Oct 31 21:02:27 2008
New Revision: 1451
URL: http://svn.gnome.org/viewvc/brasero?rev=1451&view=rev

Log:
	Fix for #556144 â brasero crashed with SIGSEGV in IA__g_sequence_iter_get_sequence()

	* src/brasero-file-filtered.c
	(brasero_file_filtered_restore_pressed_cb):


Modified:
   trunk/ChangeLog
   trunk/src/brasero-file-filtered.c

Modified: trunk/src/brasero-file-filtered.c
==============================================================================
--- trunk/src/brasero-file-filtered.c	(original)
+++ trunk/src/brasero-file-filtered.c	Fri Oct 31 21:02:27 2008
@@ -373,6 +373,8 @@
 
 	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree));
 	selected = gtk_tree_selection_get_selected_rows (selection, &model);
+
+	/* reverse the list so as to be able to delete properly item */
 	selected = g_list_reverse (selected);
 
 	for (iter = selected; iter; iter = iter->next) {
@@ -382,9 +384,14 @@
 		gchar *uri;
 
 		treepath = iter->data;
-		gtk_tree_model_get_iter (model, &treeiter, treepath);
+		if (!gtk_tree_model_get_iter (model, &treeiter, treepath)) {
+			gtk_tree_path_free (treepath);
+			continue;
+		}
+
 		gtk_tree_path_free (treepath);
 
+		uri = NULL;
 		gtk_tree_model_get (model, &treeiter,
 				    UNESCAPED_URI_COL, &uri, 
 				    -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]