brasero r729 - in branches/brasero_0_7: . src



Author: philippr
Date: Thu Apr 17 15:27:32 2008
New Revision: 729
URL: http://svn.gnome.org/viewvc/brasero?rev=729&view=rev

Log:
	Attempt to avoid crash in #527571 â brasero crashed with SIGSEGV in g_str_hash()

	* src/brasero-data-disc.c
	(brasero_data_disc_inotify_attributes_event_cb):


Modified:
   branches/brasero_0_7/ChangeLog
   branches/brasero_0_7/src/brasero-data-disc.c

Modified: branches/brasero_0_7/src/brasero-data-disc.c
==============================================================================
--- branches/brasero_0_7/src/brasero-data-disc.c	(original)
+++ branches/brasero_0_7/src/brasero-data-disc.c	Thu Apr 17 15:27:32 2008
@@ -12143,8 +12143,7 @@
 	BraseroDataDisc *disc = BRASERO_DATA_DISC (owner);
 	BraseroFilterStatus status;
 
-	if (result == GNOME_VFS_OK
-	&&  brasero_data_disc_is_readable (info)) {
+	if (result == GNOME_VFS_OK && brasero_data_disc_is_readable (info)) {
 		if (disc->priv->unreadable
 		&& (status = GPOINTER_TO_INT (g_hash_table_lookup (disc->priv->unreadable, uri)))
 		&&  status == BRASERO_FILTER_UNREADABLE) {
@@ -12160,7 +12159,9 @@
 	}
 
 	/* the file couldn't be a symlink anyway don't check for loop */
-	brasero_data_disc_remove_uri (disc, uri, TRUE);
+	if (uri)
+		brasero_data_disc_remove_uri (disc, uri, TRUE);
+
 	if (result != GNOME_VFS_ERROR_NOT_FOUND)
 		brasero_data_disc_unreadable_new (disc,
 						  g_strdup (uri),



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