[brasero] Fix a memory leak
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix a memory leak
- Date: Sun, 21 Jun 2009 17:07:43 -0400 (EDT)
commit e335c6be70251081367d480d453b5f7f502b43d4
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Jun 13 16:15:48 2009 +0200
Fix a memory leak
libbrasero-media/burn-volume-source.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-media/burn-volume-source.c b/libbrasero-media/burn-volume-source.c
index 27c1fd4..42882a0 100644
--- a/libbrasero-media/burn-volume-source.c
+++ b/libbrasero-media/burn-volume-source.c
@@ -327,7 +327,11 @@ brasero_volume_source_open_device_handle (BraseroDeviceHandle *handle,
g_free (hdr);
return src;
}
-
+
+ /* clean and retry */
+ g_free (hdr);
+ hdr = NULL;
+
result = brasero_mmc2_get_configuration_feature (handle,
BRASERO_SCSI_FEAT_RD_RANDOM,
&hdr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]