[brasero/gnome-2-28] Don't leak the error if the creation of a checksum task fails
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero/gnome-2-28] Don't leak the error if the creation of a checksum task fails
- Date: Sat, 3 Oct 2009 12:01:22 +0000 (UTC)
commit 4a557a682d8dbd373e1a16e7a842a79c5a200de0
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Sep 29 22:01:33 2009 +0200
Don't leak the error if the creation of a checksum task fails
libbrasero-burn/brasero-burn.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn.c b/libbrasero-burn/brasero-burn.c
index 5af9ec4..3f35dcd 100644
--- a/libbrasero-burn/brasero-burn.c
+++ b/libbrasero-burn/brasero-burn.c
@@ -2103,10 +2103,10 @@ brasero_burn_check_real (BraseroBurn *self,
* means the checksum file is on the disc. */
medium = brasero_drive_get_medium (priv->dest);
- /* get the task and run it */
+ /* get the task and run it skip it otherwise */
priv->task = brasero_burn_caps_new_checksuming_task (priv->caps,
priv->session,
- error);
+ NULL);
if (priv->task) {
priv->task_nb = 1;
priv->tasks_done = 0;
@@ -2153,7 +2153,7 @@ brasero_burn_check_real (BraseroBurn *self,
}
else {
BRASERO_BURN_LOG ("The track cannot be checked");
- result = BRASERO_BURN_OK;
+ return BRASERO_BURN_OK;
}
return result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]