[brasero] Fix memory leak where a GError was not propagated properly



commit 1a6db68ea957d012f6b06ffac3e8d85dbdfb85ad
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue Mar 2 16:57:37 2010 +0100

    Fix memory leak where a GError was not propagated properly

 libbrasero-burn/burn-task.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-burn/burn-task.c b/libbrasero-burn/burn-task.c
index a631c2e..c8d8c83 100644
--- a/libbrasero-burn/burn-task.c
+++ b/libbrasero-burn/burn-task.c
@@ -315,6 +315,9 @@ brasero_task_start_item (BraseroTask *task,
 		result = klass->start (item, &ret_error);
 	}
 
+	if (ret_error)
+		g_propagate_error (error, ret_error);
+
 	return result;
 }
 



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