[brasero] Just a change to satisfy valgrind



commit 07c805b19090f2f655f9e8a3eb4bff3800317233
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Fri Jul 31 19:50:31 2009 +0200

    Just a change to satisfy valgrind

 libbrasero-burn/brasero-burn.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn.c b/libbrasero-burn/brasero-burn.c
index 698b1e2..6f4dffb 100644
--- a/libbrasero-burn/brasero-burn.c
+++ b/libbrasero-burn/brasero-burn.c
@@ -2407,8 +2407,11 @@ brasero_burn_same_src_dest_image (BraseroBurn *self,
 	}
 
 	/* some, like cdrdao, can't overwrite the files */
-	g_remove (image);
-	g_remove (toc);
+	if (image)
+		g_remove (image);
+
+	if (toc)
+		g_remove (toc);
 
 	result = brasero_burn_session_set_image_output_full (priv->session,
 							     brasero_track_type_get_image_format (output),



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