brasero r1428 - in trunk: . src



Author: philippr
Date: Mon Oct 27 13:30:13 2008
New Revision: 1428
URL: http://svn.gnome.org/viewvc/brasero?rev=1428&view=rev

Log:
	Fix a crash when an audio/video file isn\'t loaded yet or hasn\'t got any
	BraseroSongInfo and we\'re trying to save the project contents.

	* src/burn-track.c (brasero_song_info_copy):


Modified:
   trunk/ChangeLog
   trunk/src/burn-track.c

Modified: trunk/src/burn-track.c
==============================================================================
--- trunk/src/burn-track.c	(original)
+++ trunk/src/burn-track.c	Mon Oct 27 13:30:13 2008
@@ -128,6 +128,9 @@
 {
 	BraseroSongInfo *copy;
 
+	if (!info)
+		return NULL;
+
 	copy = g_new0 (BraseroSongInfo, 1);
 
 	copy->title = g_strdup (info->title);



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