[brasero] Fix memory leak and make sure a spanned session is always reset.
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix memory leak and make sure a spanned session is always reset.
- Date: Sat, 23 May 2009 11:29:19 -0400 (EDT)
commit 308b8ad874df6fd449167e714c1913995fa0db0f
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue May 19 20:54:39 2009 +0200
Fix memory leak and make sure a spanned session is always reset.
---
libbrasero-burn/brasero-burn-dialog.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index 3939155..afb6e74 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -2118,10 +2118,8 @@ brasero_burn_dialog_record_spanned_session (BraseroBurnDialog *dialog,
/* See if we have more data to burn and ask for a new medium */
result = brasero_session_span_again (BRASERO_SESSION_SPAN (priv->session));
- if (result == BRASERO_BURN_OK) {
- g_free (secondary_message);
- return BRASERO_BURN_OK;
- }
+ if (result == BRASERO_BURN_OK)
+ break;
res = brasero_burn_dialog_wait_for_insertion (dialog,
burner,
@@ -2148,6 +2146,7 @@ brasero_burn_dialog_record_spanned_session (BraseroBurnDialog *dialog,
} while (result == BRASERO_BURN_RETRY);
+ g_free (secondary_message);
brasero_session_span_stop (BRASERO_SESSION_SPAN (priv->session));
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]